mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-11 14:35:50 +00:00
Cleanup WndProcCommon
This commit is contained in:
parent
05c4308cac
commit
94e16e638d
@ -310,10 +310,9 @@ static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
||||
case SC_SCREENSAVE:
|
||||
case SC_MONITORPOWER:
|
||||
*quit = true;
|
||||
return 0;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_DROPFILES:
|
||||
return win32_drag_query_file(hwnd, wparam);
|
||||
case WM_CHAR:
|
||||
@ -334,8 +333,8 @@ static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
||||
g_pos_y = placement.rcNormalPosition.top;
|
||||
g_quit = true;
|
||||
*quit = true;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case WM_SIZE:
|
||||
/* Do not send resize message if we minimize. */
|
||||
if (wparam != SIZE_MAXHIDE && wparam != SIZE_MINIMIZED)
|
||||
@ -345,7 +344,7 @@ static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
||||
g_resized = true;
|
||||
}
|
||||
*quit = true;
|
||||
return 0;
|
||||
break;
|
||||
case WM_COMMAND:
|
||||
if (settings->ui.menubar_enable)
|
||||
win32_menu_loop(g_hwnd, wparam);
|
||||
|
Loading…
x
Reference in New Issue
Block a user