Skip to content

Commit cc3615b

Browse files
committed
SDL2+WIN32: Call win32_window_init
1 parent e588c58 commit cc3615b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

gfx/drivers/sdl2_gfx.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include "../common/x11_common.h"
3333
#endif
3434

35+
#ifdef _WIN32
36+
#include "../common/win32_common.h"
37+
#endif
38+
3539
#ifdef HAVE_MENU
3640
#include "../../menu/menu_driver.h"
3741
#endif
@@ -422,6 +426,10 @@ static void *sdl2_gfx_init(const video_info_t *video,
422426

423427
#if defined(_WIN32)
424428
sdl2_set_handles(vid->window, RARCH_DISPLAY_WIN32);
429+
{
430+
WNDCLASSEX wndclass = {0};
431+
win32_window_init(&wndclass, true, NULL);
432+
}
425433
#elif defined(HAVE_COCOA)
426434
sdl2_set_handles(vid->window, RARCH_DISPLAY_OSX);
427435
#else

0 commit comments

Comments
 (0)