aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorpk33 <pk33@pk33.space>2024-11-03 22:26:28 +0100
committerpk33 <pk33@pk33.space>2024-11-03 22:26:28 +0100
commit0ffb4f8463e3e06e8d88b7be22f5cb7adb702361 (patch)
tree05e626d6ce4e0d8e544a40f8a14965cf4fdd5780 /src/main.c
parent6c69ea8da9d306e4e6d21d0feee5213fea15f49e (diff)
downloadengine33-0ffb4f8463e3e06e8d88b7be22f5cb7adb702361.tar.gz
fonts, text and basic ui for on-screen log
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;