Debugger: Lua - Fixed origin for drawRectangle with negative width/height

This commit is contained in:
Sour 2018-06-19 00:16:30 -04:00
parent 6ce759298e
commit 3736cc108c

View file

@ -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;
}