aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he
diff options
context:
space:
mode:
authorMax Horn2006-09-17 23:35:09 +0000
committerMax Horn2006-09-17 23:35:09 +0000
commit285aa5d0b2321760a8f5acd54dc2baaf98534774 (patch)
treeb0f0e5955daf2a6d324fd266865821aefbb6de1c /engines/scumm/he
parentfab33bf6639d72776b1818131724af6d1a67ce58 (diff)
downloadscummvm-rg350-285aa5d0b2321760a8f5acd54dc2baaf98534774.tar.gz
scummvm-rg350-285aa5d0b2321760a8f5acd54dc2baaf98534774.tar.bz2
scummvm-rg350-285aa5d0b2321760a8f5acd54dc2baaf98534774.zip
renamed ScummEngine::restoreBG to restoreBackground; renamed and moved Gdi::copyVirtScreenBuffers to ScummEngine_v70he::restoreBackgroundHE
svn-id: r23925
Diffstat (limited to 'engines/scumm/he')
-rw-r--r--engines/scumm/he/animation_he.cpp2
-rw-r--r--engines/scumm/he/floodfill_he.cpp2
-rw-r--r--engines/scumm/he/intern_he.h2
-rw-r--r--engines/scumm/he/script_v100he.cpp2
-rw-r--r--engines/scumm/he/script_v72he.cpp2
-rw-r--r--engines/scumm/he/sprite_he.cpp6
-rw-r--r--engines/scumm/he/wiz_he.cpp4
7 files changed, 11 insertions, 9 deletions
diff --git a/engines/scumm/he/animation_he.cpp b/engines/scumm/he/animation_he.cpp
index 76184633e1..0c737ed899 100644
--- a/engines/scumm/he/animation_he.cpp
+++ b/engines/scumm/he/animation_he.cpp
@@ -93,7 +93,7 @@ void MoviePlayer::handleNextFrame() {
copyFrameToBuffer(pvs->getBackPixels(0, 0), 0, 0, _vm->_screenWidth);
Common::Rect imageRect(_width, _height);
- _vm->_gdi->copyVirtScreenBuffers(imageRect);
+ _vm->restoreBackgroundHE(imageRect);
} else {
copyFrameToBuffer(pvs->getPixels(0, 0), 0, 0, _vm->_screenWidth);
diff --git a/engines/scumm/he/floodfill_he.cpp b/engines/scumm/he/floodfill_he.cpp
index fb9fa73513..dd45cf56bc 100644
--- a/engines/scumm/he/floodfill_he.cpp
+++ b/engines/scumm/he/floodfill_he.cpp
@@ -220,7 +220,7 @@ void floodFill(FloodFillParameters *ffp, ScummEngine_v90he *vm) {
if (r.left <= r.right && r.top <= r.bottom) {
if (ffp->flags & 0x8000) {
- vm->_gdi->copyVirtScreenBuffers(r);
+ vm->restoreBackgroundHE(r);
} else {
++r.bottom;
vm->markRectAsDirty(kMainVirtScreen, r);
diff --git a/engines/scumm/he/intern_he.h b/engines/scumm/he/intern_he.h
index 08e2c5554e..f7e56eb45d 100644
--- a/engines/scumm/he/intern_he.h
+++ b/engines/scumm/he/intern_he.h
@@ -142,6 +142,8 @@ public:
byte *heFindResource(uint32 tag, byte *ptr);
byte *findWrappedBlock(uint32 tag, byte *ptr, int state, bool flagError);
+ void restoreBackgroundHE(Common::Rect rect, int dirtybit = 0);
+
protected:
virtual void setupOpcodes();
virtual void executeOpcode(byte i);
diff --git a/engines/scumm/he/script_v100he.cpp b/engines/scumm/he/script_v100he.cpp
index f576c294cf..d3ac0c2f32 100644
--- a/engines/scumm/he/script_v100he.cpp
+++ b/engines/scumm/he/script_v100he.cpp
@@ -2151,7 +2151,7 @@ void ScummEngine_v100he::o100_systemOps() {
debug(0, "Start executable (%s)", string);
break;
case 75:
- _gdi->copyVirtScreenBuffers(Common::Rect(_screenWidth, _screenHeight));
+ restoreBackgroundHE(Common::Rect(_screenWidth, _screenHeight));
updatePalette();
break;
default:
diff --git a/engines/scumm/he/script_v72he.cpp b/engines/scumm/he/script_v72he.cpp
index a708b3baad..db54180f5b 100644
--- a/engines/scumm/he/script_v72he.cpp
+++ b/engines/scumm/he/script_v72he.cpp
@@ -1528,7 +1528,7 @@ void ScummEngine_v72he::o72_systemOps() {
clearDrawObjectQueue();
break;
case 26: // HE80+
- _gdi->copyVirtScreenBuffers(Common::Rect(_screenWidth, _screenHeight));
+ restoreBackgroundHE(Common::Rect(_screenWidth, _screenHeight));
updatePalette();
break;
case 158:
diff --git a/engines/scumm/he/sprite_he.cpp b/engines/scumm/he/sprite_he.cpp
index 40b05e2f68..ca64fe8c28 100644
--- a/engines/scumm/he/sprite_he.cpp
+++ b/engines/scumm/he/sprite_he.cpp
@@ -1066,7 +1066,7 @@ void Sprite::resetTables(bool refreshScreen) {
resetGroup(curGrp);
if (refreshScreen) {
- _vm->_gdi->copyVirtScreenBuffers(Common::Rect(_vm->_screenWidth, _vm->_screenHeight));
+ _vm->restoreBackgroundHE(Common::Rect(_vm->_screenWidth, _vm->_screenHeight));
}
_numSpritesToProcess = 0;
}
@@ -1084,7 +1084,7 @@ void Sprite::resetBackground() {
spi->flags &= ~kSFChanged;
if (spi->bbox.left <= spi->bbox.right && spi->bbox.top <= spi->bbox.bottom) {
if (spi->flags & kSFBlitDirectly) {
- _vm->_gdi->copyVirtScreenBuffers(spi->bbox, USAGE_BIT_RESTORED);
+ _vm->restoreBackgroundHE(spi->bbox, USAGE_BIT_RESTORED);
} else if (firstLoop) {
xmin = spi->bbox.left;
ymin = spi->bbox.top;
@@ -1113,7 +1113,7 @@ void Sprite::resetBackground() {
}
}
if (refreshScreen) {
- _vm->_gdi->copyVirtScreenBuffers(Common::Rect(xmin, ymin, xmax, ymax), USAGE_BIT_RESTORED);
+ _vm->restoreBackgroundHE(Common::Rect(xmin, ymin, xmax, ymax), USAGE_BIT_RESTORED);
}
}
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 252423a2ef..15c488c850 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1226,7 +1226,7 @@ uint8 *Wiz::drawWizImage(int resNum, int state, int x1, int y1, int zorder, int
++rImage.bottom;
_vm->markRectAsDirty(kMainVirtScreen, rImage);
} else {
- _vm->_gdi->copyVirtScreenBuffers(rImage);
+ _vm->restoreBackgroundHE(rImage);
}
}
}
@@ -1485,7 +1485,7 @@ void Wiz::drawWizPolygonTransform(int resNum, int state, Common::Point *wp, int
if (flags & kWIFMarkBufferDirty) {
_vm->markRectAsDirty(kMainVirtScreen, bound);
} else {
- _vm->_gdi->copyVirtScreenBuffers(bound);
+ _vm->restoreBackgroundHE(bound);
}
free(srcWizBuf);