mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Really fixed love.graphics.rectangle
This commit is contained in:
@@ -983,7 +983,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};
|
||||
float coords[] = {x,y, x,y+h, x+w,y+h, x+w,y, x,y};
|
||||
polygon(mode, coords, 5 * 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user