mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Pass through data variable to win32_window_create correctly
This commit is contained in:
parent
5453055135
commit
3a30649876
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue