diff src/video/SDL_renderer_gl.c @ 3324:0f19b2fa4125

-0.5 is causing trouble according to comments in bug #783
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Sep 2009 15:32:58 +0000
parents 1ed5d432e468
children fe2f10481878
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Mon Sep 28 15:32:19 2009 +0000
+++ b/src/video/SDL_renderer_gl.c	Mon Sep 28 15:32:58 2009 +0000
@@ -448,8 +448,8 @@
         data->glMatrixMode(GL_MODELVIEW);
         data->glLoadIdentity();
         data->glViewport(0, 0, window->w, window->h);
-        data->glOrtho(-0.5, (GLdouble) window->w-0.5,
-                      (GLdouble) window->h-0.5, -0.5, 0.0, 1.0);
+        data->glOrtho(0.0, (GLdouble) window->w,
+                      (GLdouble) window->h, 0.0, 0.0, 1.0);
         data->updateSize = SDL_FALSE;
     }
     return 0;