comparison src/video/SDL_renderer_gl.c @ 3455:5a7b5760c875

Include the endpoint in the line we're drawing
author Sam Lantinga <slouken@libsdl.org>
date Thu, 19 Nov 2009 04:59:19 +0000
parents 77366fae0094
children 06e948183b59
comparison
equal deleted inserted replaced
3454:77366fae0094 3455:5a7b5760c875
1126 data->glBegin(GL_LINES); 1126 data->glBegin(GL_LINES);
1127 data->glVertex2f(0.5f + x1, 0.5f + y1); 1127 data->glVertex2f(0.5f + x1, 0.5f + y1);
1128 data->glVertex2f(0.5f + x2, 0.5f + y2); 1128 data->glVertex2f(0.5f + x2, 0.5f + y2);
1129 data->glEnd(); 1129 data->glEnd();
1130 1130
1131 /* For some reason the second endpoint is skipped */
1132 data->glBegin(GL_POINTS);
1133 data->glVertex2f(0.5f + x2, 0.5f + y2);
1134 data->glEnd();
1135
1131 return 0; 1136 return 0;
1132 } 1137 }
1133 1138
1134 static int 1139 static int
1135 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect) 1140 GL_RenderFill(SDL_Renderer * renderer, const SDL_Rect * rect)