mirror of
https://github.com/libretro/snes9x.git
synced 2024-12-14 04:28:36 +00:00
Simplify window recreation.
This commit is contained in:
parent
db6de9a624
commit
96a5e03770
@ -727,16 +727,10 @@ S9xOpenGLDisplayDriver::refresh (int width, int height)
|
||||
void
|
||||
S9xOpenGLDisplayDriver::resize_window (int width, int height)
|
||||
{
|
||||
XWindowChanges changes;
|
||||
|
||||
changes.width = width;
|
||||
changes.height = height;
|
||||
XConfigureWindow (display, xwindow, CWWidth | CWHeight, &changes);
|
||||
XSync (display, False);
|
||||
|
||||
gdk_window_show (gdk_window);
|
||||
output_window_width = width;
|
||||
output_window_height = height;
|
||||
g_object_unref (gdk_window);
|
||||
XDestroyWindow (display, xwindow);
|
||||
create_window (width, height);
|
||||
glXMakeCurrent (display, xwindow, glx_context);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -39,16 +39,9 @@ S9xXVDisplayDriver::S9xXVDisplayDriver (Snes9xWindow *window,
|
||||
void
|
||||
S9xXVDisplayDriver::resize_window (int width, int height)
|
||||
{
|
||||
XWindowChanges changes;
|
||||
|
||||
changes.width = width;
|
||||
changes.height = height;
|
||||
XConfigureWindow (display, xwindow, CWWidth | CWHeight, &changes);
|
||||
XSync (display, False);
|
||||
|
||||
gdk_window_show (gdk_window);
|
||||
output_window_width = width;
|
||||
output_window_height = height;
|
||||
g_object_unref (gdk_window);
|
||||
XDestroyWindow (display, xwindow);
|
||||
create_window (width, height);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user