aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDmitry Iskrich2016-07-01 00:14:04 +0300
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit2ad3d3a236d579565d74f67863fc8a78c0882b64 (patch)
tree0a32fef28e844fb8d6a5d754ebd945192e4c8253 /engines
parentb460a7c03601952e4e60c565893bdaf90ae92f33 (diff)
downloadscummvm-rg350-2ad3d3a236d579565d74f67863fc8a78c0882b64.tar.gz
scummvm-rg350-2ad3d3a236d579565d74f67863fc8a78c0882b64.tar.bz2
scummvm-rg350-2ad3d3a236d579565d74f67863fc8a78c0882b64.zip
DIRECTOR: Simple text rendering
Diffstat (limited to 'engines')
-rw-r--r--engines/director/score.cpp5
1 files changed, 4 insertions, 1 deletions
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) {