aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorTravis Howell2007-06-05 00:36:33 +0000
committerTravis Howell2007-06-05 00:36:33 +0000
commit8e927dd4c787a11f5ac4d2a4ba85cc7ea426520e (patch)
treee2aa2c17edf4579eb3aa15795014a1407e79caa4 /engines/agos
parent2b593f30a14a23f7ef4db9048a5d429ec4bc22ee (diff)
downloadscummvm-rg350-8e927dd4c787a11f5ac4d2a4ba85cc7ea426520e.tar.gz
scummvm-rg350-8e927dd4c787a11f5ac4d2a4ba85cc7ea426520e.tar.bz2
scummvm-rg350-8e927dd4c787a11f5ac4d2a4ba85cc7ea426520e.zip
Hopefully more reliable display of inventory arrows.
svn-id: r27095
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/icons.cpp36
1 files changed, 12 insertions, 24 deletions
diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp
index 6b968711e3..88b6f6c07b 100644
--- a/engines/agos/icons.cpp
+++ b/engines/agos/icons.cpp
@@ -703,27 +703,21 @@ void AGOSEngine_Simon1::addArrows(WindowBlock *window) {
ha->window = window;
ha->verb = 1;
- if (getFeatures() & GF_32COLOR) {
- _lockWord |= 0x8;
+ _lockWord |= 0x8;
- VgaPointersEntry *vpe = &_vgaBufferPointers[1];
- byte *curVgaFile2Orig = _curVgaFile2;
- uint16 windowNumOrig = _windowNum;
+ VgaPointersEntry *vpe = &_vgaBufferPointers[1];
+ byte *curVgaFile2Orig = _curVgaFile2;
+ uint16 windowNumOrig = _windowNum;
+ uint8 palette = (getPlatform() == Common::kPlatformAmiga) ? 15 : 14;
+ _windowNum = 0;
+ _curVgaFile2 = vpe->vgaFile2;
+ drawImage_init(1, palette, 38, 150, 4);
- _windowNum = 0;
- _curVgaFile2 = vpe->vgaFile2;
- drawImage_init(1, 15, 38, 150, 4);
+ _curVgaFile2 = curVgaFile2Orig;
+ _windowNum = windowNumOrig;
- _curVgaFile2 = curVgaFile2Orig;
- _windowNum = windowNumOrig;
-
- _lockWord &= ~0x8;
- } else {
- stopAnimate(128);
- uint8 palette = (getPlatform() == Common::kPlatformAmiga) ? 15 : 14;
- animate(0, 1, 128, 0, 0, palette);
- }
+ _lockWord &= ~0x8;
}
void AGOSEngine_Waxworks::addArrows(WindowBlock *window) {
@@ -822,13 +816,7 @@ void AGOSEngine::addArrows(WindowBlock *window) {
void AGOSEngine::removeArrows(WindowBlock *window, uint num) {
if (getGameType() == GType_SIMON1) {
- if (getFeatures() & GF_32COLOR) {
- restoreBlock(200, 320, 146, 304);
- } else {
- stopAnimate(129);
- uint8 palette = (getPlatform() == Common::kPlatformAmiga) ? 15: 14;
- animate(0, 1, 129, 0, 0, palette);
- }
+ restoreBlock(200, 320, 146, 304);
} else if (getGameType() == GType_WW) {
setBitFlag(22, false);
setWindowImageEx(6, 103);