summaryrefslogtreecommitdiff
path: root/src/boot/O2
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/O2')
-rw-r--r--src/boot/O2/gfxprint.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/boot/O2/gfxprint.c b/src/boot/O2/gfxprint.c
index 368ef7d68..735514e45 100644
--- a/src/boot/O2/gfxprint.c
+++ b/src/boot/O2/gfxprint.c
@@ -1,5 +1,4 @@
-#include "global.h"
-#include "libc64/aprintf.h"
+#include "gfxprint.h"
#define GFXP_FLAG_HIRAGANA (1 << 0)
#define GFXP_FLAG_RAINBOW (1 << 1)
@@ -127,30 +126,37 @@ void GfxPrint_PrintChar(GfxPrint* this, u8 c) {
switch (c) {
case '\0':
break;
+
case '\n':
this->posY += 32;
case '\r':
this->posX = this->baseX;
break;
+
case '\t':
do {
GfxPrint_PrintCharImpl(this, ' ');
} while ((this->posX - this->baseX) % 256);
break;
+
case GFXP_HIRAGANA_CHAR:
this->flags |= GFXP_FLAG_HIRAGANA;
break;
+
case GFXP_KATAKANA_CHAR:
this->flags &= ~GFXP_FLAG_HIRAGANA;
break;
+
case GFXP_RAINBOW_ON_CHAR:
this->flags |= GFXP_FLAG_RAINBOW;
this->flags |= GFXP_FLAG_UPDATE;
break;
+
case GFXP_RAINBOW_OFF_CHAR:
this->flags &= ~GFXP_FLAG_RAINBOW;
this->flags |= GFXP_FLAG_UPDATE;
break;
+
case GFXP_UNUSED_CHAR:
default:
break;