diff options
author | Peter Kohaut | 2019-07-14 22:02:48 +0200 |
---|---|---|
committer | Peter Kohaut | 2019-07-16 21:32:34 +0200 |
commit | ffbfe90afad5c1b6a24705e94235172d2d38b032 (patch) | |
tree | dc58d3fbb1da18545b2676c408355d0d82f1da34 /engines/bladerunner/ui/kia_section_diagnostic.cpp | |
parent | 0781584dfcf02ed063cd114fa02572a0bf7f81ee (diff) | |
download | scummvm-rg350-ffbfe90afad5c1b6a24705e94235172d2d38b032.tar.gz scummvm-rg350-ffbfe90afad5c1b6a24705e94235172d2d38b032.tar.bz2 scummvm-rg350-ffbfe90afad5c1b6a24705e94235172d2d38b032.zip |
BLADERUNNER: Ajdust font interface to ScummVM's one
Diffstat (limited to 'engines/bladerunner/ui/kia_section_diagnostic.cpp')
-rw-r--r-- | engines/bladerunner/ui/kia_section_diagnostic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/ui/kia_section_diagnostic.cpp b/engines/bladerunner/ui/kia_section_diagnostic.cpp index 9c1f57d864..41ff43c282 100644 --- a/engines/bladerunner/ui/kia_section_diagnostic.cpp +++ b/engines/bladerunner/ui/kia_section_diagnostic.cpp @@ -85,7 +85,7 @@ void KIASectionDiagnostic::draw(Graphics::Surface &surface) { const char *text = _text->getText(i); if (text) { - _vm->_mainFont->drawColor(text, surface, 320 - _vm->_mainFont->getTextWidth(text) / 2, y, surface.format.RGBToColor(kTextColors[colorIndex].r, kTextColors[colorIndex].g, kTextColors[colorIndex].b)); + _vm->_mainFont->drawString(&surface, text, 320 - _vm->_mainFont->getStringWidth(text) / 2, y, surface.w, surface.format.RGBToColor(kTextColors[colorIndex].r, kTextColors[colorIndex].g, kTextColors[colorIndex].b)); } } } |