diff options
-rw-r--r-- | engines/agi/agi.cpp | 5 | ||||
-rw-r--r-- | engines/agi/picture.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 74795271fc..04c3b34f92 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -334,7 +334,10 @@ void AgiEngine::replayImageStackCall(uint8 type, int16 p1, int16 p2, int16 p3, case ADD_PIC: debugC(8, kDebugLevelMain, "--- decoding picture %d ---", p1); agiLoadResource(rPICTURE, p1); - _picture->decodePicture(p1, p2); + // Not using simply p3 or (bool) p3 for decodePicture's third + // parameter because they give a warning C4800 with MSVC8: + // 'int16' : forcing value to bool 'true' or 'false' (performance warning) + _picture->decodePicture(p1, p2, p3 ? true : false); break; case ADD_VIEW: agiLoadResource(rVIEW, p1); diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp index e3fd2277d0..144e965465 100644 --- a/engines/agi/picture.cpp +++ b/engines/agi/picture.cpp @@ -652,7 +652,7 @@ int PictureMgr::decodePicture(int n, int clear, bool agi256) { if (clear) _vm->clearImageStack(); - _vm->recordImageStackCall(ADD_PIC, n, clear, 0, 0, 0, 0, 0); + _vm->recordImageStackCall(ADD_PIC, n, clear, agi256, 0, 0, 0, 0); return errOK; } |