diff src/video/SDL_renderer_gl.c @ 3472:fdd2f2e9cd97

Fixed the coordinates for pixel coverage in blits
author Sam Lantinga <slouken@libsdl.org>
date Sat, 21 Nov 2009 06:34:43 +0000
parents 419f459f2f38
children 7bdc10624cba
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Sat Nov 21 06:28:25 2009 +0000
+++ b/src/video/SDL_renderer_gl.c	Sat Nov 21 06:34:43 2009 +0000
@@ -1292,13 +1292,13 @@
 
     data->glBegin(GL_TRIANGLE_STRIP);
     data->glTexCoord2f(minu, minv);
-    data->glVertex2f(0.5f + minx, 0.5f + miny);
+    data->glVertex2f((GLfloat) minx, (GLfloat) miny);
     data->glTexCoord2f(maxu, minv);
-    data->glVertex2f(0.5f + maxx, 0.5f + miny);
+    data->glVertex2f((GLfloat) maxx, (GLfloat) miny);
     data->glTexCoord2f(minu, maxv);
-    data->glVertex2f(0.5f + minx, 0.5f + maxy);
+    data->glVertex2f((GLfloat) minx, (GLfloat) maxy);
     data->glTexCoord2f(maxu, maxv);
-    data->glVertex2f(0.5f + maxx, 0.5f + maxy);
+    data->glVertex2f((GLfloat) maxx, (GLfloat) maxy);
     data->glEnd();
 
     if (shader) {