Force PCem to leave fullscreen mode when losing focus.
DirectInput mouse initialisation no longer fails if mouse can not be immediately acquired.
This commit is contained in:
parent
b9a0084792
commit
b79be95623
2 changed files with 3 additions and 2 deletions
|
|
@ -843,6 +843,7 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
video_fullscreen = 1;
|
||||
vid_apis[1][vid_api].init(ghwnd);
|
||||
mouse_init();
|
||||
leave_fullscreen_flag = 0;
|
||||
endblit();
|
||||
device_force_redraw();
|
||||
break;
|
||||
|
|
@ -1015,6 +1016,8 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
|||
}
|
||||
// pclog("Lost focus!\n");
|
||||
memset(rawinputkey, 0, sizeof(rawinputkey));
|
||||
if (video_fullscreen)
|
||||
leave_fullscreen_flag = 1;
|
||||
break;
|
||||
|
||||
case WM_LBUTTONUP:
|
||||
|
|
|
|||
Loading…
Reference in a new issue