aboutsummaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h9
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);