From 0ffb4f8463e3e06e8d88b7be22f5cb7adb702361 Mon Sep 17 00:00:00 2001 From: pk33 Date: Sun, 3 Nov 2024 22:26:28 +0100 Subject: fonts, text and basic ui for on-screen log --- src/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 1b9b2d3..f950eff 100644 --- a/src/main.c +++ b/src/main.c @@ -3,6 +3,8 @@ #include "logger.h" #include "system.h" #include "signal.h" +#include "strings33.h" +#include "ui33.h" static void _term_sighandler( int sig ); @@ -33,9 +35,13 @@ int main(int argc, char *argv[]) { display_vtswitcher_poll(1); + if( __display.active ) { - __display.surface.data[10] = GREEN; + qsuprintf( 5, 5, "fps: %d", FPS-1 ); + + ui_draw_messages(); + display_flip(); } @@ -45,7 +51,6 @@ int main(int argc, char *argv[]) if(time >= 1000000) { - logi("FPS: %d", FPS); FPS = fps; time = 0; fps = 0; -- cgit v1.2.3