Fix borders being thinner than they should

This commit is contained in:
Dendy 2022-07-25 17:49:04 +02:00
parent 9a1ab8de6f
commit c1cd614040
1 changed files with 2 additions and 2 deletions

View File

@ -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 {
self.fillRectangle(x, y, 1, h);
self.fillRectangle(x, y, w, 1);
self.fillRectangle(w+x, y, 1, h);
self.fillRectangle(x, h+y, w, 1);
self.fillRectangle(w+x-1, y, 1, h);
self.fillRectangle(x, h+y-1, w, 1);
}
pub fn fillRectangle(self: *Self, x: i32, y: i32, w: i32, h: i32) void {