-0.5 is causing trouble according to comments in bug #783
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Sep 2009 15:32:58 +0000
changeset 3324 0f19b2fa4125
parent 3323 8d0889509afb
child 3325 bb9c3d04f126
-0.5 is causing trouble according to comments in bug #783
src/video/SDL_renderer_gl.c
--- 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;