mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-05 21:38:09 +03:00
Windows: Adjust window size after adding menubar
This commit is contained in:
@@ -22,6 +22,8 @@ void init_menu()
|
||||
HINSTANCE hinst = (HINSTANCE)GetModuleHandle(NULL);
|
||||
HMENU hmenu = LoadMenu(hinst, MAKEINTRESOURCE(IDR_MENU1));
|
||||
SetMenu(get_hwnd(g_window), hmenu);
|
||||
// Let SDL recalc the window size, taking menu height into account.
|
||||
SDL_SetWindowSize(g_window, 640, 400);
|
||||
}
|
||||
|
||||
void init_console(int sys_ver)
|
||||
|
||||
Reference in New Issue
Block a user