aboutsummaryrefslogtreecommitdiff
path: root/gui/newgui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/newgui.cpp')
-rw-r--r--gui/newgui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/newgui.cpp b/gui/newgui.cpp
index ed58bda981..767c5776c9 100644
--- a/gui/newgui.cpp
+++ b/gui/newgui.cpp
@@ -373,8 +373,10 @@ void NewGui::addDirtyRect(int x, int y, int w, int h) {
_system->copyRectToOverlay(buf, _screenPitch, x, y, w, h);
}
-void NewGui::drawChar(byte chr, int xx, int yy, OverlayColor color) {
- getFont().drawChar(&_screen, chr, xx, yy, color);
+void NewGui::drawChar(byte chr, int xx, int yy, OverlayColor color, const Graphics::Font *font) {
+ if (font == 0)
+ font = &getFont();
+ font->drawChar(&_screen, chr, xx, yy, color);
}
int NewGui::getStringWidth(const String &str) {