From 2ad3d3a236d579565d74f67863fc8a78c0882b64 Mon Sep 17 00:00:00 2001 From: Dmitry Iskrich Date: Fri, 1 Jul 2016 00:14:04 +0300 Subject: DIRECTOR: Simple text rendering --- engines/director/score.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/director/score.cpp b/engines/director/score.cpp index c799eef6d8..82b7ebf79b 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -37,6 +37,7 @@ #include "engines/util.h" #include "graphics/managed_surface.h" #include "image/bmp.h" +#include "graphics/fontman.h" namespace Director { @@ -1268,7 +1269,9 @@ void Frame::renderText(Graphics::ManagedSurface &surface, uint16 spriteID) { int y = _sprites[spriteID]->_startPoint.y + rectTop; int height = _sprites[spriteID]->_height; int width = _sprites[spriteID]->_width; - //TODO render text + + //FIXME + FontMan.getFontByUsage(Graphics::FontManager::kBigGUIFont)->drawString(&surface, text, x, y, width, 0); } void Frame::drawBackgndTransSprite(Graphics::ManagedSurface &target, const Graphics::Surface &sprite, Common::Rect &drawRect) { -- cgit v1.2.3