From 560f07e306da1906720ffc8a7de32069b8b7353e Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 22 Oct 2023 18:35:58 +0300 Subject: triangle!!!!!!!!!! --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.c') 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; -- cgit v1.2.3