aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2013-01-08 13:39:14 +0200
committerFilippos Karapetis2013-01-08 13:39:14 +0200
commit2b1b6689086e73b77041ec36a8337f044486ad73 (patch)
treedd3fbcbb9625a4e7da3a400a8b6289ccfe7a5e9c /engines/hopkins/graphics.cpp
parent7462978be5d01dce90b046cb633db46b135fb19d (diff)
downloadscummvm-rg350-2b1b6689086e73b77041ec36a8337f044486ad73.tar.gz
scummvm-rg350-2b1b6689086e73b77041ec36a8337f044486ad73.tar.bz2
scummvm-rg350-2b1b6689086e73b77041ec36a8337f044486ad73.zip
HOPKINS: Get rid of the NO_VISU global variable
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r--engines/hopkins/graphics.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index aaf5962cac..93c96ab1d9 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -1177,7 +1177,7 @@ void GraphicsManager::displayVesaSegment() {
unlockScreen();
}
-void GraphicsManager::AFFICHE_SPEEDVGA(const byte *objectData, int xp, int yp, int idx) {
+void GraphicsManager::AFFICHE_SPEEDVGA(const byte *objectData, int xp, int yp, int idx, bool addSegment) {
int height, width;
width = _vm->_objectsManager.getWidth(objectData, idx);
@@ -1189,7 +1189,7 @@ void GraphicsManager::AFFICHE_SPEEDVGA(const byte *objectData, int xp, int yp, i
Sprite_Vesa(_vesaBuffer, objectData, xp + 300, yp + 300, idx);
Sprite_Vesa(_vesaScreen, objectData, xp + 300, yp + 300, idx);
}
- if (!_vm->_globals.NO_VISU)
+ if (addSegment)
addVesaSegment(xp, yp, xp + width, yp + height);
}
@@ -1625,7 +1625,7 @@ Aff_Zoom_Larg_Cont1:
/**
* Fast Display
*/
-void GraphicsManager::fastDisplay(const byte *spriteData, int xp, int yp, int spriteIndex) {
+void GraphicsManager::fastDisplay(const byte *spriteData, int xp, int yp, int spriteIndex, bool addSegment) {
int width = _vm->_objectsManager.getWidth(spriteData, spriteIndex);
int height = _vm->_objectsManager.getHeight(spriteData, spriteIndex);
@@ -1636,7 +1636,7 @@ void GraphicsManager::fastDisplay(const byte *spriteData, int xp, int yp, int sp
Sprite_Vesa(_vesaBuffer, spriteData, xp + 300, yp + 300, spriteIndex);
Sprite_Vesa(_vesaScreen, spriteData, xp + 300, yp + 300, spriteIndex);
}
- if (!_vm->_globals.NO_VISU)
+ if (addSegment)
addVesaSegment(xp, yp, xp + width, yp + height);
}