aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/hotspots.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-08-08 00:35:18 +0000
committerSven Hesse2010-08-08 00:35:18 +0000
commit44159533936ff68da1d92639003ae30fc7611cf1 (patch)
treec164e015498bfef4942893493b15319bbad4a74e /engines/gob/hotspots.cpp
parentf8a43ee35f4ca2a409558fbb6bf978cc2ae54ab4 (diff)
downloadscummvm-rg350-44159533936ff68da1d92639003ae30fc7611cf1.tar.gz
scummvm-rg350-44159533936ff68da1d92639003ae30fc7611cf1.tar.bz2
scummvm-rg350-44159533936ff68da1d92639003ae30fc7611cf1.zip
GOB: Add constants for different surfaces/sprites
Add static const int kFrontSurface = 20; static const int kBackSurface = 21; static const int kAnimSurface = 22; static const int kCursorSurface = 23; static const int kCaptureSurface = 30; to class Draw and substitute the raw numbers in other files with those aliases, for readability. svn-id: r51852
Diffstat (limited to 'engines/gob/hotspots.cpp')
-rw-r--r--engines/gob/hotspots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index abdf513393..396d9f0a22 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -2082,7 +2082,7 @@ void Hotspots::getTextCursorPos(const Font &font, const char *str,
}
void Hotspots::fillRect(uint16 x, uint16 y, uint16 width, uint16 height, uint16 color) const {
- _vm->_draw->_destSurface = 21;
+ _vm->_draw->_destSurface = Draw::kBackSurface;
_vm->_draw->_destSpriteX = x;
_vm->_draw->_destSpriteY = y;
_vm->_draw->_spriteRight = width;