aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-02 13:44:37 +0000
committerFilippos Karapetis2007-09-02 13:44:37 +0000
commit7c92d3b02b77eb411f6fdf4671c732caa03abbe2 (patch)
tree4e2985a62cef2bf195531abe275f2bf5819a7a2b /engines
parentf3ae0182e09f3d15f4d0a6a896f5d39ba8ac8dfc (diff)
downloadscummvm-rg350-7c92d3b02b77eb411f6fdf4671c732caa03abbe2.tar.gz
scummvm-rg350-7c92d3b02b77eb411f6fdf4671c732caa03abbe2.tar.bz2
scummvm-rg350-7c92d3b02b77eb411f6fdf4671c732caa03abbe2.zip
Slight update on Mickey's drawPic
svn-id: r28821
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/preagi_mickey.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/agi/preagi_mickey.cpp b/engines/agi/preagi_mickey.cpp
index d34a0908d8..651ed4c5e2 100644
--- a/engines/agi/preagi_mickey.cpp
+++ b/engines/agi/preagi_mickey.cpp
@@ -620,11 +620,15 @@ void Mickey::drawObj(ENUM_MSA_OBJECT iObj, int x0, int y0) {
void Mickey::drawPic(int iPic) {
_vm->preAgiLoadResource(rPICTURE, iPic);
+ // Note that decodePicture clears the screen
_vm->_picture->decodePicture(iPic, true, false, IDI_MSA_PIC_WIDTH, IDI_MSA_PIC_HEIGHT);
- _vm->_picture->showPic(10, _WIDTH - 20);
+ _vm->_picture->showPic(10, IDI_MSA_PIC_WIDTH, IDI_MSA_PIC_HEIGHT);
_vm->_gfx->doUpdate();
_vm->_system->updateScreen(); // TODO: this should go in the game's main loop
/*
+
+ // Original code used in TrollVM
+
int w = IDI_MSA_PIC_WIDTH, h = IDI_MSA_PIC_HEIGHT;
int flags = IDF_AGI_PIC_V2;