aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/picture.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-09-05 15:43:56 +0000
committerFilippos Karapetis2007-09-05 15:43:56 +0000
commit5a97b3d9be9c92624fc319abf4fb39105f8e7757 (patch)
tree146f6a08ccaaf25b583766374872ea4772cfcb31 /engines/agi/picture.cpp
parent4d30763ab91a450db439440897e45757b87e1352 (diff)
downloadscummvm-rg350-5a97b3d9be9c92624fc319abf4fb39105f8e7757.tar.gz
scummvm-rg350-5a97b3d9be9c92624fc319abf4fb39105f8e7757.tar.bz2
scummvm-rg350-5a97b3d9be9c92624fc319abf4fb39105f8e7757.zip
Some updates for Mickey:
- Click to move functionality (improvement over the original game). It's now possible to navigate around using the mouse as well, together with the menu commands. The mouse cursor changes when the player hovers it at the picture's edges, towards a direction where Mickey is able to move to (north, south, east or west) - waitAnyKey has been moved into Mickey's code (because of the animation part) - Implemented the circle flag for AGI picture decoding svn-id: r28853
Diffstat (limited to 'engines/agi/picture.cpp')
-rw-r--r--engines/agi/picture.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 715c7349a7..3ffd4895fd 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -480,7 +480,7 @@ void PictureMgr::plotPattern(int x, int y) {
circle_word = *circle_ptr++;
for (counter = 0; counter <= pen_width; counter += counterStep) {
- //if (pic.fCircle) pen_status |= 0x10;
+ if (_flagCircle) patCode |= 0x10;
if (circleCond || ((binary_list[counter>>1] & circle_word) != 0)) {
temp8 = t % 2;
t = t >> 1;
@@ -779,6 +779,8 @@ int PictureMgr::decodePicture(int n, int clear, bool agi256, int pic_width, int
_vm->clearImageStack();
_vm->recordImageStackCall(ADD_PIC, n, clear, agi256, 0, 0, 0, 0);
+ _flagCircle = false;
+
return errOK;
}
@@ -830,4 +832,8 @@ void PictureMgr::setColor(uint8 color) {
scrColour = color;
}
+void PictureMgr::setFlagCircle() {
+ _flagCircle = true;
+}
+
} // End of namespace Agi