mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed love.graphics.rectangle
This commit is contained in:
@@ -984,7 +984,7 @@ void Graphics::polyline(const float *coords, size_t count)
|
||||
void Graphics::rectangle(DrawMode mode, float x, float y, float w, float h)
|
||||
{
|
||||
float coords[] = {x,y, x,y+h, x+w,y+h, x+w,y};
|
||||
polygon(mode, coords, 4 * 2);
|
||||
polygon(mode, coords, 5 * 2);
|
||||
}
|
||||
|
||||
void Graphics::circle(DrawMode mode, float x, float y, float radius, int points)
|
||||
|
||||
Reference in New Issue
Block a user