SUPERNOVA: Fixes font rendering

This commit is contained in:
Joseph-Eugene Winzer 2017-07-19 00:20:40 +02:00 committed by Thierry Crozat
parent e0aa700dac
commit 36263aaa0b

View file

@ -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();