Permalink
Browse files

SUPERNOVA: Fixes font rendering

  • Loading branch information...
Joefish committed Jul 18, 2017
1 parent df7a8d8 commit 0b66baabededeae72d3a6f8a54afbf1970534fe7
Showing with 3 additions and 2 deletions.
  1. +3 −2 engines/supernova/supernova.cpp
@@ -359,11 +359,12 @@ int SupernovaEngine::textWidth(const char *text) {
}
for (uint i = 0; i < 5; ++i) {
++charWidth;
if (font[c - 32][i] == 0xff) {
break;
}
++charWidth;
}
++charWidth;
}
return charWidth;
@@ -464,7 +465,6 @@ void SupernovaEngine::renderText(const char *text, int x, int y, byte color) {
for (uint i = 0; i < 5; ++i) {
if (font[c - 32][i] == 0xff) {
++cursor;
break;
}
@@ -477,6 +477,7 @@ void SupernovaEngine::renderText(const char *text, int x, int y, byte color) {
}
cursor = ++ascentLine;
}
++cursor;
}
_system->unlockScreen();

0 comments on commit 0b66baa

Please sign in to comment.