aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/graphics.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-01-18 14:38:33 -0500
committerPaul Gilbert2014-01-18 14:38:33 -0500
commitf084539957e461cd74179008f81791fd29f0d311 (patch)
treef50f3d4127519e8234178a8461160f8a54fc9d13 /engines/voyeur/graphics.cpp
parente387b016c02fcec0e5f4446f1a1064e6b0171e08 (diff)
downloadscummvm-rg350-f084539957e461cd74179008f81791fd29f0d311.tar.gz
scummvm-rg350-f084539957e461cd74179008f81791fd29f0d311.tar.bz2
scummvm-rg350-f084539957e461cd74179008f81791fd29f0d311.zip
VOYEUR: Converted drawText and textWidth to work on PictureResource
Diffstat (limited to 'engines/voyeur/graphics.cpp')
-rw-r--r--engines/voyeur/graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 6c62c6f041..4dd4c67b0f 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -58,6 +58,7 @@ GraphicsManager::GraphicsManager():
_vPort = NULL;
_fontPtr = NULL;
Common::fill(&_VGAColors[0], &_VGAColors[PALETTE_SIZE], 0);
+ _fontChar = new PictureResource(0, 0xff, 0xff, 0, 0, Common::Rect(), 0, NULL, 0);
}
void GraphicsManager::sInitGraphics() {
@@ -70,6 +71,7 @@ void GraphicsManager::sInitGraphics() {
GraphicsManager::~GraphicsManager() {
_screenSurface.free();
+ delete _fontChar;
}
void GraphicsManager::setupMCGASaveRect(ViewPortResource *viewPort) {