aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-10-23 22:08:23 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-10-23 22:08:23 +0900
commit6ab52ffca0262bde8b3ab858fa63db8369874ff4 (patch)
treec49236b731180b188bfb196f0466e8111a8ec529 /win32
parentacb405ba36ec82511525f4f9e2a0775e2d85308e (diff)
pacc-d3d9: prepare for D3DERR_DEVICELOST
Diffstat (limited to 'win32')
-rw-r--r--win32/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/win32/main.c b/win32/main.c
index 026250d..e3fb702 100644
--- a/win32/main.c
+++ b/win32/main.c
@@ -39,6 +39,10 @@ enum {
ID_CONFIG,
};
+enum {
+ WM_PACC_RESET = WM_USER,
+};
+
#define FMPLAYER_CLASSNAME L"myon_fmplayer_ym2608_win32"
#define FMPLAYER_CDSTAG 0xFD809800UL
@@ -703,6 +707,9 @@ static LRESULT CALLBACK wndproc(
return DLGC_WANTMESSAGE;
}
break;
+ case WM_PACC_RESET:
+ // TODO
+ break;
}
return DefWindowProc(hwnd, msg, wParam, lParam);
}
@@ -789,7 +796,7 @@ int CALLBACK wWinMain(HINSTANCE hinst, HINSTANCE hpinst,
wr.right-wr.left, wr.bottom-wr.top,
0, 0, g.hinst, 0
);
- g.pc = pacc_init_d3d9(g.fmdspwnd, render_cb, 0, &g.pacc, &g.pacc_win);
+ g.pc = pacc_init_d3d9(g.fmdspwnd, render_cb, 0, &g.pacc, &g.pacc_win, WM_PACC_RESET, g.mainwnd);
if (!g.pc) {
MessageBox(g.mainwnd, L"Error", L"Cannot initialize Direct3D", MB_ICONSTOP);
return 0;