aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
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;