mirror of https://github.com/snes9xgit/snes9x.git
Simplify ridiculous round-about function calls.
This commit is contained in:
parent
f9b909b022
commit
7e32a1f4ea
|
@ -770,7 +770,7 @@ S9xOpenGLDisplayDriver::create_window (int width, int height)
|
|||
XSync (display, False);
|
||||
|
||||
#if USE_GTK3
|
||||
gdk_window = gdk_x11_window_foreign_new_for_display (gdk_window_get_display (gtk_widget_get_window (drawing_area)), xwindow);
|
||||
gdk_window = gdk_x11_window_foreign_new_for_display (gtk_widget_get_display (drawing_area), xwindow);
|
||||
#else
|
||||
gdk_window = gdk_window_foreign_new (xwindow);
|
||||
#endif
|
||||
|
|
|
@ -82,7 +82,7 @@ S9xXVDisplayDriver::create_window (int width, int height)
|
|||
XSync (display, False);
|
||||
|
||||
#if USE_GTK3
|
||||
gdk_window = gdk_x11_window_foreign_new_for_display (gdk_window_get_display (gtk_widget_get_window (drawing_area)), xwindow);
|
||||
gdk_window = gdk_x11_window_foreign_new_for_display (gtk_widget_get_display (drawing_area), xwindow);
|
||||
#else
|
||||
gdk_window = gdk_window_foreign_new (xwindow);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue