diff options
Diffstat (limited to 'engines/bladerunner/font.cpp')
-rw-r--r-- | engines/bladerunner/font.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/bladerunner/font.cpp b/engines/bladerunner/font.cpp index 5ae1c8eedc..d4b0e16515 100644 --- a/engines/bladerunner/font.cpp +++ b/engines/bladerunner/font.cpp @@ -120,6 +120,14 @@ void Font::drawColor(const Common::String &text, Graphics::Surface &surface, int draw(text, surface, x, y); } +void Font::drawNumber(int num, Graphics::Surface &surface, int x, int y) const { + char buffer[20]; + + snprintf(buffer, 20, "%d", num); + + draw(buffer, surface, x, y); +} + int Font::getTextWidth(const Common::String &text) const { const uint8 *character = (const uint8 *)text.c_str(); |