diff options
author | pk33 <pk33@pk33.space> | 2024-11-03 22:26:28 +0100 |
---|---|---|
committer | pk33 <pk33@pk33.space> | 2024-11-03 22:26:28 +0100 |
commit | 0ffb4f8463e3e06e8d88b7be22f5cb7adb702361 (patch) | |
tree | 05e626d6ce4e0d8e544a40f8a14965cf4fdd5780 /src/main.c | |
parent | 6c69ea8da9d306e4e6d21d0feee5213fea15f49e (diff) | |
download | engine33-0ffb4f8463e3e06e8d88b7be22f5cb7adb702361.tar.gz |
fonts, text and basic ui for on-screen log
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; |