Debugger: Lua - Fixed origin for drawRectangle with negative width/height
This commit is contained in:
parent
6ce759298e
commit
3736cc108c
1 changed files with 2 additions and 2 deletions
|
@ -34,11 +34,11 @@ public:
|
|||
DrawCommand(frameCount), _x(x), _y(y), _width(width), _height(height), _color(color), _fill(fill)
|
||||
{
|
||||
if(width < 0) {
|
||||
_x += width;
|
||||
_x += width + 1;
|
||||
_width = -width;
|
||||
}
|
||||
if(height < 0) {
|
||||
_y += height;
|
||||
_y += height + 1;
|
||||
_height = -height;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue