diff options
author | Strangerke | 2014-03-14 08:08:31 +0100 |
---|---|---|
committer | Strangerke | 2014-03-14 08:08:31 +0100 |
commit | dd16e5f91ca98f81ec5863e118e81cacf34e17ad (patch) | |
tree | 9e780f0422dd0aab6257c83fca19e9d81cd029fa /engines/voyeur/graphics.cpp | |
parent | 38f90feaa53d2e81e6047e22b1ca9ce7a3d191bd (diff) | |
download | scummvm-rg350-dd16e5f91ca98f81ec5863e118e81cacf34e17ad.tar.gz scummvm-rg350-dd16e5f91ca98f81ec5863e118e81cacf34e17ad.tar.bz2 scummvm-rg350-dd16e5f91ca98f81ec5863e118e81cacf34e17ad.zip |
VOYEUR: Get rid of some magic values
Diffstat (limited to 'engines/voyeur/graphics.cpp')
-rw-r--r-- | engines/voyeur/graphics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index acf0b273f8..f756b9cc85 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -48,7 +48,7 @@ GraphicsManager::GraphicsManager(VoyeurEngine *vm) : _defaultDrawInfo(1, Common: _vPort = NULL; _fontPtr = NULL; Common::fill(&_VGAColors[0], &_VGAColors[PALETTE_SIZE], 0); - _fontChar = new PictureResource(0, 0xff, 0xff, 0, Common::Rect(), 0, NULL, 0); + _fontChar = new PictureResource(DISPFLAG_NONE, 0xff, 0xff, 0, Common::Rect(), 0, NULL, 0); _backColors = nullptr; } @@ -65,7 +65,7 @@ GraphicsManager::~GraphicsManager() { void GraphicsManager::setupMCGASaveRect(ViewPortResource *viewPort) { if (viewPort->_activePage) { - viewPort->_activePage->_flags |= 1; + viewPort->_activePage->_flags |= DISPFLAG_1; Common::Rect *clipRect = _clipPtr; _clipPtr = &viewPort->_clipRect; @@ -219,7 +219,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des widthDiff2 = destPic->_bounds.width() - width2; if (destViewPort) { - if (!_saveBack || ((srcPic->_flags & DISPFLAG_800) != 0)) { + if (!_saveBack || (srcPic->_flags & DISPFLAG_800)) { backBounds.left = destPic->_bounds.left + offset.x; backBounds.top = destPic->_bounds.top + offset.y; backBounds.setWidth(width2); @@ -864,7 +864,7 @@ void GraphicsManager::fillPic(DisplayResource *display, byte onOff) { } PictureResource picResource; - picResource._flags = 0; + picResource._flags = DISPFLAG_NONE; picResource._select = 0xff; picResource._pick = 0; picResource._onOff = onOff; |