SDL: Use constants instead of literals for the screen dimensions

This commit is contained in:
Jeffrey Pfau 2014-11-22 20:51:15 -08:00
parent 3177226e8e
commit 6a40e3e455
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ void GBASDLRunloop(struct GBAThread* context, struct SDLSoftwareRenderer* render
glTexCoordPointer(2, GL_INT, 0, _glTexCoords);
glMatrixMode (GL_PROJECTION);
glLoadIdentity();
glOrtho(0, 240, 160, 0, 0, 1);
glOrtho(0, VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS, 0, 0, 1);
while (context->state < THREAD_EXITING) {
if (GBASyncWaitFrameStart(&context->sync, context->frameskip)) {
glBindTexture(GL_TEXTURE_2D, renderer->tex);