Simplify ridiculous round-about function calls.

This commit is contained in:
Brandon Wright 2011-02-11 03:50:24 -06:00
parent f9b909b022
commit 7e32a1f4ea
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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