Fix borders being thinner than they should
This commit is contained in:
parent
9a1ab8de6f
commit
c1cd614040
|
@ -106,8 +106,8 @@ pub fn setColor(self: *Self, r: u8, g: i32, b: i32, a: i32) void {
|
||||||
pub fn drawRectangle(self: *Self, x: i32, y: i32, w: i32, h: i32) void {
|
pub fn drawRectangle(self: *Self, x: i32, y: i32, w: i32, h: i32) void {
|
||||||
self.fillRectangle(x, y, 1, h);
|
self.fillRectangle(x, y, 1, h);
|
||||||
self.fillRectangle(x, y, w, 1);
|
self.fillRectangle(x, y, w, 1);
|
||||||
self.fillRectangle(w+x, y, 1, h);
|
self.fillRectangle(w+x-1, y, 1, h);
|
||||||
self.fillRectangle(x, h+y, w, 1);
|
self.fillRectangle(x, h+y-1, w, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn fillRectangle(self: *Self, x: i32, y: i32, w: i32, h: i32) void {
|
pub fn fillRectangle(self: *Self, x: i32, y: i32, w: i32, h: i32) void {
|
||||||
|
|
Loading…
Reference in New Issue