diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-13 21:27:29 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-13 21:27:29 +0300 |
commit | 8e235c8e6641f223c59e8502ac0caebf9c5c1ffc (patch) | |
tree | 1a70b7fb442a03d1c1f35f7f196904aed5c124de /src/display.c | |
parent | ca6964122a823534d0f083f988c4602409e52db7 (diff) |
more user friendly
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c index a1ee9f7..2a46493 100644 --- a/src/display.c +++ b/src/display.c @@ -29,10 +29,14 @@ void dspl_destroy() void dspl_draw_circle(int cx, int cy, int r) { - DrawCircle((info.width/2) + cx, (info.height/2) + cy, r, RED); + int offsetx = (info.width/2); + int offsety = (info.height/4); + DrawCircle(offsetx + cx, offsety + cy, r, RED); } void dspl_draw_line(int x1, int y1, int x2, int y2, int c) { - DrawLine((info.width/2) + x1, (info.height/2) + y1, (info.width/2) + x2, (info.height/2) + y2 , (c == 0) ? BLUE : RED); + int offsetx = (info.width/2); + int offsety = (info.height/4); + DrawLine(offsetx + x1, offsety + y1, offsetx + x2, offsety + y2 , (c == 0) ? BLUE : RED); } |