From f6039eb1a0600bfdaca55cc841e2ecb08866f4bf Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Thu, 18 Nov 2010 06:40:57 -0600 Subject: [PATCH] Align OpenGL viewport using top screen edge. --- gtk/src/gtk_display_driver_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/src/gtk_display_driver_opengl.cpp b/gtk/src/gtk_display_driver_opengl.cpp index d98e15f0..698357a1 100644 --- a/gtk/src/gtk_display_driver_opengl.cpp +++ b/gtk/src/gtk_display_driver_opengl.cpp @@ -170,7 +170,7 @@ S9xOpenGLDisplayDriver::update (int width, int height) w = allocation.width; h = allocation.height; S9xApplyAspect (x, y, w, h); - glViewport (x, y, w, h); + glViewport (x, allocation.height-y-h, w, h); window->set_mouseable_area (x, y, w, h); update_texture_size (width, height);