mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed size of filled rects.
This commit is contained in:
@@ -936,9 +936,9 @@ namespace opengl
|
|||||||
case DRAW_FILL:
|
case DRAW_FILL:
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
glVertex2f(x, y);
|
glVertex2f(x, y);
|
||||||
glVertex2f(x, y+h-1);
|
glVertex2f(x, y+h);
|
||||||
glVertex2f(x+w-1, y+h-1);
|
glVertex2f(x+w, y+h);
|
||||||
glVertex2f(x+w-1, y);
|
glVertex2f(x+w, y);
|
||||||
glEnd();
|
glEnd();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user