[Scummvm-cvs-logs] scummvm master -> 40703426c971f92f1397a34b780ba9a72586711b
bluegr
md5 at scummvm.org
Mon Sep 26 03:28:54 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
40703426c9 AGI: Fix for bug #3018770 - "AGI: PQ1: Flickering newspaper"
Commit: 40703426c971f92f1397a34b780ba9a72586711b
https://github.com/scummvm/scummvm/commit/40703426c971f92f1397a34b780ba9a72586711b
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2011-09-25T18:23:03-07:00
Commit Message:
AGI: Fix for bug #3018770 - "AGI: PQ1: Flickering newspaper"
Changed paths:
engines/agi/keyboard.cpp
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 4ac0849..6d6d55e 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -180,10 +180,17 @@ int AgiEngine::handleController(int key) {
if (!(getFeatures() & GF_AGIMOUSE)) {
// Handle mouse button events
if (key == BUTTON_LEFT) {
- v->flags |= fAdjEgoXY;
- v->parm1 = WIN_TO_PIC_X(_mouse.x);
- v->parm2 = WIN_TO_PIC_Y(_mouse.y);
- return true;
+ if (getGameID() == GID_PQ1 && _game.vars[vCurRoom] == 116) {
+ // Special handling for mouse clicks in the newspaper
+ // screen of PQ1. Fixes bug #3018770.
+ d = 3; // fake a right arrow key (next page)
+ } else {
+ // Click-to-walk mouse interface
+ v->flags |= fAdjEgoXY;
+ v->parm1 = WIN_TO_PIC_X(_mouse.x);
+ v->parm2 = WIN_TO_PIC_Y(_mouse.y);
+ return true;
+ }
}
}
More information about the Scummvm-git-logs
mailing list