mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Reduced the width and height of rectanges by one pixel.
This commit is contained in:
@@ -925,9 +925,9 @@ namespace opengl
|
||||
case DRAW_LINE:
|
||||
glBegin(GL_LINE_LOOP);
|
||||
glVertex2f(x, y);
|
||||
glVertex2f(x, y+h);
|
||||
glVertex2f(x+w, y+h);
|
||||
glVertex2f(x+w, y);
|
||||
glVertex2f(x, y+h-1);
|
||||
glVertex2f(x+w-1, y+h-1);
|
||||
glVertex2f(x+w-1, y);
|
||||
glEnd();
|
||||
break;
|
||||
|
||||
@@ -935,9 +935,9 @@ namespace opengl
|
||||
case DRAW_FILL:
|
||||
glBegin(GL_QUADS);
|
||||
glVertex2f(x, y);
|
||||
glVertex2f(x, y+h);
|
||||
glVertex2f(x+w, y+h);
|
||||
glVertex2f(x+w, y);
|
||||
glVertex2f(x, y+h-1);
|
||||
glVertex2f(x+w-1, y+h-1);
|
||||
glVertex2f(x+w-1, y);
|
||||
glEnd();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user