From 40703426c971f92f1397a34b780ba9a72586711b Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 26 Sep 2011 04:23:03 +0300 Subject: AGI: Fix for bug #3018770 - "AGI: PQ1: Flickering newspaper" --- engines/agi/keyboard.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'engines/agi/keyboard.cpp') diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp index 4ac08492ae..6d6d55ed24 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; + } } } -- cgit v1.2.3