aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/sdl/amigaos/amigaos-main.cpp14
-rw-r--r--engines/scumm/he/wiz_he.cpp19
2 files changed, 26 insertions, 7 deletions
diff --git a/backends/platform/sdl/amigaos/amigaos-main.cpp b/backends/platform/sdl/amigaos/amigaos-main.cpp
index 291c4c76d4..7bbf8d1fff 100644
--- a/backends/platform/sdl/amigaos/amigaos-main.cpp
+++ b/backends/platform/sdl/amigaos/amigaos-main.cpp
@@ -49,15 +49,15 @@ int main(int argc, char *argv[]) {
sizeof(progpath),
DN_FULLPATH)) {
- // Stop any "Insert volume..." type requesters
- oldwin = IDOS->SetProcWindow((APTR)-1);
+ // Stop any "Insert volume..." type requesters
+ oldwin = IDOS->SetProcWindow((APTR)-1);
- // Finally, set the variable to the path the executable was run from
- IDOS->AddPart( apppath, appname, 1024);
- IDOS->SetVar( apppath, progpath, -1, GVF_GLOBAL_ONLY|GVF_SAVE_VAR );
+ // Finally, set the variable to the path the executable was run from
+ IDOS->AddPart( apppath, appname, 1024);
+ IDOS->SetVar( apppath, progpath, -1, GVF_GLOBAL_ONLY|GVF_SAVE_VAR );
- // Turn system requesters back on
- IDOS->SetProcWindow( oldwin );
+ // Turn system requesters back on
+ IDOS->SetProcWindow( oldwin );
}
}
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp
index 43994c33d6..c1232406b8 100644
--- a/engines/scumm/he/wiz_he.cpp
+++ b/engines/scumm/he/wiz_he.cpp
@@ -1615,6 +1615,10 @@ void Wiz::drawWizImageEx(uint8 *dst, uint8 *dataPtr, uint8 *maskPtr, int dstPitc
uint8 *wizd = _vm->findWrappedBlock(MKTAG('W','I','Z','D'), dataPtr, state, 0);
assert(wizd);
+ if (srcw == srch && srcw == 30) {
+ warning("FOG: comp %d bits: %x", comp, conditionBits);
+ }
+
switch (comp) {
case 0:
copyRawWizImage(dst, wizd, dstPitch, dstType, dstw, dsth, srcx, srcy, srcw, srch, rect, flags, palPtr, transColor, bitDepth);
@@ -1682,12 +1686,20 @@ void Wiz::copyCompositeWizImage(uint8 *dst, uint8 *wizPtr, uint8 *compositeInfoB
uint32 layerCmdDataBits = READ_LE_UINT32(cmdPtr);
cmdPtr += 4;
+ if (srcw == srch && srcw == 30) {
+ warning("layerbits: %x", layerCmdDataBits);
+ }
+
uint32 subConditionBits;
if (layerCmdDataBits & kWCFConditionBits) {
uint32 layerConditionBits = READ_LE_UINT32(cmdPtr);
cmdPtr += 4;
+ if (srcw == srch && srcw == 30) {
+ warning("layercondbits: %x", layerConditionBits);
+ }
+
subConditionBits = (layerConditionBits & kWMSBReservedBits);
layerConditionBits &= ~kWMSBReservedBits;
@@ -1721,6 +1733,9 @@ void Wiz::copyCompositeWizImage(uint8 *dst, uint8 *wizPtr, uint8 *compositeInfoB
uint16 subState;
if (layerCmdDataBits & kWCFSubState) {
subState = READ_LE_UINT16(cmdPtr);
+ if (srcw == srch && srcw == 30) {
+ warning("state: %x substate: %x", state, subState);
+ }
cmdPtr += 2;
} else {
subState = 0;
@@ -1769,6 +1784,10 @@ void Wiz::copyCompositeWizImage(uint8 *dst, uint8 *wizPtr, uint8 *compositeInfoB
cmdPtr += 4;
}
+ if (srcw == srch && srcw == 30) {
+ warning("subBits: %x", subConditionBits);
+ }
+
drawWizImageEx(dst, nestedWizHeader, maskPtr, dstPitch, dstType, dstw, dsth, srcx + xPos, srcy + yPos, srcw, srch,
subState, clipBox, drawFlags, palPtr, transColor, bitDepth, xmapPtr, subConditionBits);
}