1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-27 23:37:39 +00:00

Pass through data variable to win32_window_create correctly

This commit is contained in:
twinaphex 2016-01-08 05:13:10 +01:00
parent 5453055135
commit 3a30649876
2 changed files with 2 additions and 2 deletions
gfx
common
drivers_context

@ -526,7 +526,7 @@ bool win32_set_video_mode(void *data,
g_resize_height = height = rect.bottom - rect.top;
}
if (!win32_window_create(NULL, style, &mon_rect, width, height, fullscreen))
if (!win32_window_create(data, style, &mon_rect, width, height, fullscreen))
return false;
if (!fullscreen || windowed_full)

@ -363,7 +363,7 @@ static bool gfx_ctx_wgl_set_video_mode(void *data,
unsigned width, unsigned height,
bool fullscreen)
{
if (!win32_set_video_mode(data, width, height, fullscreen))
if (!win32_set_video_mode(NULL, width, height, fullscreen))
goto error;
p_swap_interval = (BOOL (APIENTRY *)(int))wglGetProcAddress("wglSwapIntervalEXT");