diff options
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; |