aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorDavid Turner2011-05-04 04:52:04 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:10 +0100
commit9f3cc261c2e833097d7dca196502c004593a38ab (patch)
tree585724f67865f45476458714414b267d13acf569 /engines
parenta3007d6e2a5ec810b26e091349cf6aaac197f7a7 (diff)
downloadscummvm-rg350-9f3cc261c2e833097d7dca196502c004593a38ab.tar.gz
scummvm-rg350-9f3cc261c2e833097d7dca196502c004593a38ab.tar.bz2
scummvm-rg350-9f3cc261c2e833097d7dca196502c004593a38ab.zip
TOLTECS: Fix Compilation After Graphics::Surface PixelFormat changes.
Diffstat (limited to 'engines')
-rw-r--r--engines/toltecs/menu.cpp2
-rw-r--r--engines/toltecs/segmap.cpp2
-rw-r--r--engines/toltecs/toltecs.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/toltecs/menu.cpp b/engines/toltecs/menu.cpp
index e8ae49d3cd..074e27ca1e 100644
--- a/engines/toltecs/menu.cpp
+++ b/engines/toltecs/menu.cpp
@@ -42,7 +42,7 @@ int MenuSystem::run() {
debug("MenuSystem::run()");
_background = new Graphics::Surface();
- _background->create(640, 400, 1);
+ _background->create(640, 400, Graphics::PixelFormat::createFormatCLUT8());
_currMenuID = kMenuIdNone;
_newMenuID = kMenuIdMain;
diff --git a/engines/toltecs/segmap.cpp b/engines/toltecs/segmap.cpp
index 6fbc04a9c5..75b0c633cd 100644
--- a/engines/toltecs/segmap.cpp
+++ b/engines/toltecs/segmap.cpp
@@ -370,7 +370,7 @@ void SegmentMap::getRgbModifiertAtPoint(int16 x, int16 y, int16 id, byte &r, byt
void SegmentMap::loadSegmapMaskRectSurface(byte *maskData, SegmapMaskRect &maskRect) {
maskRect.surface = new Graphics::Surface();
- maskRect.surface->create(maskRect.width, maskRect.height, 1);
+ maskRect.surface->create(maskRect.width, maskRect.height, Graphics::PixelFormat::createFormatCLUT8());
byte *backScreen = _vm->_screen->_backScreen + maskRect.x + (maskRect.y * _vm->_sceneWidth);
byte *dest = (byte*)maskRect.surface->getBasePtr(0, 0);
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 1e8a8ec78e..4f9fbae94f 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -303,7 +303,7 @@ void ToltecsEngine::drawScreen() {
_screen->_renderQueue->update();
- //printf("_guiHeight = %d\n", _guiHeight); fflush(stdout);
+ //debug("_guiHeight = %d\n", _guiHeight);
if (_screen->_guiRefresh && _guiHeight > 0 && _cameraHeight > 0) {
// Update the GUI when needed and it's visible