# HG changeset patch # User Sam Lantinga # Date 1287274444 25200 # Node ID 9779093454d25ce0e715d15c4629924507cc1743 # Parent c0021a587dc7a2b581707943a5181337c7782a11 This fixes SDL_renderer_gl so that it builds with c89. From: François Revol Checked By: Scott McCreary diff -r c0021a587dc7 -r 9779093454d2 src/video/SDL_renderer_gl.c --- a/src/video/SDL_renderer_gl.c Sun Oct 10 15:45:58 2010 -0700 +++ b/src/video/SDL_renderer_gl.c Sat Oct 16 17:14:04 2010 -0700 @@ -1181,6 +1181,8 @@ } data->glEnd(); } else { + int x1, y1, x2, y2; + data->glBegin(GL_LINE_STRIP); for (i = 0; i < count; ++i) { data->glVertex2f(0.5f + points[i].x, 0.5f + points[i].y); @@ -1200,10 +1202,10 @@ data->glVertex2f(0.5f + points[count-1].x, 0.5f + points[count-1].y); #else /* Linux seems to leave the right-most or bottom-most point open */ - int x1 = points[0].x; - int y1 = points[0].y; - int x2 = points[count-1].x; - int y2 = points[count-1].y; + x1 = points[0].x; + y1 = points[0].y; + x2 = points[count-1].x; + y2 = points[count-1].y; if (x1 > x2) { data->glVertex2f(0.5f + x1, 0.5f + y1);