1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-29 13:20:30 +00:00

Pass function pointer to win32_window_init too

This commit is contained in:
twinaphex 2015-11-11 18:22:39 +01:00
parent 4e8000571f
commit 8f6deb9dac
3 changed files with 3 additions and 3 deletions

@ -133,7 +133,7 @@ void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id)
GetMonitorInfo(*hm_to_use, (MONITORINFO*)mon);
}
bool win32_window_init(WNDCLASSEX *wndclass)
bool win32_window_init(WNDCLASSEX *wndclass, LRESULT CALLBACK WndProc)
{
wndclass->cbSize = sizeof(*wndclass);
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;

@ -48,7 +48,7 @@ void win32_monitor_get_info(void);
void win32_monitor_info(void *data, void *hm_data, unsigned *mon_id);
bool win32_window_init(WNDCLASSEX *wndclass);
bool win32_window_init(WNDCLASSEX *wndclass, LRESULT CALLBACK WndProc);
#endif
bool win32_suppress_screensaver(void *data, bool enable);

@ -404,7 +404,7 @@ static bool gfx_ctx_wgl_init(void *data)
g_restore_desktop = false;
win32_monitor_init();
if (!win32_window_init(&wndclass))
if (!win32_window_init(&wndclass, WndProc))
return false;
if (!wgl_shader_dlg_init())