In the function lua_emptyrect in C++, the function vita2d_draw_line is used to draw the outline of the defined rectangle.
vita2d_draw_line expects x1, y1, x2, y2, color as arguments.
but in lua_emptyrect the following arguments are given
(x1), (y1), (difference between x2 and x1), (y1), color
(x1), (y2), (difference between x2 and x1), (y2), color
(x1), (y1), (x1), (difference between y2 and y1), color
(x2), (y1), (x2), (difference between y2 and y1), color
example:
if i want to draw a empty Rect from the coordinates
x: 927, y: 64,
to
x: 959, y: 96
It will draw the following lines:
x1: 927, y1: 64, x2: 32, y2: 64
x1: 927, y1: 96, x2: 32, y2: 64
x1: 927, y1: 64, x2: 959, y2: 32
x1: 959, y1: 64, x2: 959, y2: 32
Resulting in something, that locks like the attached ScreenShot
the yellow rectangle in the picture are the same coordinates, but called with fillRect, instead of fillEmptyRect.
In the function lua_emptyrect in C++, the function vita2d_draw_line is used to draw the outline of the defined rectangle.
vita2d_draw_line expects x1, y1, x2, y2, color as arguments. but in lua_emptyrect the following arguments are given
(x1), (y1), (difference between x2 and x1), (y1), color (x1), (y2), (difference between x2 and x1), (y2), color (x1), (y1), (x1), (difference between y2 and y1), color (x2), (y1), (x2), (difference between y2 and y1), color
example: if i want to draw a empty Rect from the coordinates x: 927, y: 64, to x: 959, y: 96
It will draw the following lines: x1: 927, y1: 64, x2: 32, y2: 64 x1: 927, y1: 96, x2: 32, y2: 64 x1: 927, y1: 64, x2: 959, y2: 32 x1: 959, y1: 64, x2: 959, y2: 32
Resulting in something, that locks like the attached ScreenShot the yellow rectangle in the picture are the same coordinates, but called with fillRect, instead of fillEmptyRect.![2017-10-13-054011](https://user-images.githubusercontent.com/32737746/31529473-c961b8fe-afd9-11e7-872b-8d3b63663288.jpg)