diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-08 12:04:17 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-08 12:04:17 +0300 |
commit | d0741351d3872eb9a1ce697984337f99daf82b59 (patch) | |
tree | b4a7addb1cec6c4f97db30da2710af6381117026 /src/display.c | |
parent | e41af6679dae3f4c69b46962a6bf1a1f81bee600 (diff) |
works now
Diffstat (limited to 'src/display.c')
-rw-r--r-- | src/display.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c index 57acf86..a1ee9f7 100644 --- a/src/display.c +++ b/src/display.c @@ -16,6 +16,7 @@ void dspl_start() { BeginDrawing(); ClearBackground(RAYWHITE); + DrawFPS(10, 10); info.update_func(); EndDrawing(); } @@ -28,10 +29,10 @@ void dspl_destroy() void dspl_draw_circle(int cx, int cy, int r) { - DrawCircle((info.width/2) + cx, cy, 5, RED); + DrawCircle((info.width/2) + cx, (info.height/2) + cy, r, RED); } void dspl_draw_line(int x1, int y1, int x2, int y2, int c) { - DrawLine((info.width/2) + x1, y1, (info.width/2) + x2, y2 , (c == 0) ? BLUE : RED); + DrawLine((info.width/2) + x1, (info.height/2) + y1, (info.width/2) + x2, (info.height/2) + y2 , (c == 0) ? BLUE : RED); } |