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:
parent
5453055135
commit
3a30649876
gfx
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user