aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.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/videoplayer.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/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index bdab7fcac1..50cb64dfad 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -38,7 +38,7 @@
namespace Gob {
-VideoPlayer::Properties::Properties() : type(kVideoTypeTry), sprite(20),
+VideoPlayer::Properties::Properties() : type(kVideoTypeTry), sprite(Draw::kFrontSurface),
x(-1), y(-1), width(-1), height(-1), flags(kFlagFrontSurface),
startFrame(-1), lastFrame(-1), breakKey(kShortKeyEscape),
palCmd(8), palStart(0), palEnd(255), palFrame(-1), fade(false) {
@@ -418,7 +418,7 @@ bool VideoPlayer::primaryOpen(const char *videoFile, int16 x, int16 y,
_vm->_draw->_spritesArray[0] = surf;
} else {
_backSurf = ((flags & kFlagFrontSurface) == 0);
- surf = _vm->_draw->_spritesArray[_backSurf ? 21 : 20];
+ surf = _vm->_draw->_spritesArray[_backSurf ? Draw::kBackSurface : Draw::kFrontSurface];
}
/*