diff options
author | Joseph-Eugene Winzer | 2017-07-19 00:20:40 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 00:00:11 +0000 |
commit | 36263aaa0bc3d2452f77264863d2f95dc26e806c (patch) | |
tree | ff5ecc610af48201edd18851af7ecfdb03ed45ee /engines | |
parent | e0aa700daccc4381ef9d90ca5f1a50d4d3aae8ec (diff) | |
download | scummvm-rg350-36263aaa0bc3d2452f77264863d2f95dc26e806c.tar.gz scummvm-rg350-36263aaa0bc3d2452f77264863d2f95dc26e806c.tar.bz2 scummvm-rg350-36263aaa0bc3d2452f77264863d2f95dc26e806c.zip |
SUPERNOVA: Fixes font rendering
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/supernova.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp index 678d5ce2bd..0c0866ea5e 100644 --- a/engines/supernova/supernova.cpp +++ b/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(); |