From 8e235c8e6641f223c59e8502ac0caebf9c5c1ffc Mon Sep 17 00:00:00 2001 From: kartofen Date: Thu, 13 Oct 2022 21:27:29 +0300 Subject: more user friendly --- src/display.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/display.c') 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); } -- cgit v1.2.3