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