summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-10-22 18:35:58 +0300
committerkartofen <mladenovnasko0@gmail.com>2023-10-22 18:35:58 +0300
commit560f07e306da1906720ffc8a7de32069b8b7353e (patch)
treef2ec80f50bcac515515cb5d023b58d9dfdd7c6dc /src/main.c
parentff2497dc2c67d2b7df29b729c763b6e09c876d76 (diff)
triangle!!!!!!!!!!
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 5309f09..678db3a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -6,6 +6,7 @@
#include "common.h"
// TODO: rename device.c/.h
+// to graphics.c/.h
window_t window;
device_t device;
@@ -24,8 +25,8 @@ int main(void)
// populate window info
struct window_info win_info = {0};
win_info.title = "Test App";
- win_info.w = 1200;
- win_info.h = 800;
+ win_info.w = 640;
+ win_info.h = 480;
// create window
window = window_create(&win_info);
@@ -69,6 +70,8 @@ int main(void)
running = 0;
break;
}
+
+ device_draw_frame(device);
}
ret = 0;