Align OpenGL viewport using top screen edge.

This commit is contained in:
Brandon Wright 2010-11-18 06:40:57 -06:00
parent 5a5d3f9192
commit f6039eb1a0

View File

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