diff options
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); } |