diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-28 22:23:02 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-28 22:23:02 +0300 |
commit | 7363f062baf99097a9a5e2e4366cced0afd526cb (patch) | |
tree | c1578d5fdbf9639aada5d48c6aa8e48565c43816 /src/display.h | |
parent | 8e235c8e6641f223c59e8502ac0caebf9c5c1ffc (diff) |
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/display.h b/src/display.h index 088feb7..1dadb0f 100644 --- a/src/display.h +++ b/src/display.h @@ -6,12 +6,15 @@ typedef struct dspl_createinfo { int height; char *name; int fps; - void (*update_func)(); + void (*update_func)(void); } dspl_createinfo; +#define OFFSETX (info.width/2) +#define OFFSETY (info.height/8) + void dspl_create(dspl_createinfo info); -void dspl_start(); -void dspl_destroy(); +void dspl_start(void); +void dspl_destroy(void); void dspl_draw_line(int x1, int y1, int x2, int y2, int c); void dspl_draw_circle(int cx, int cy, int r); |