From 370038048415d3b5f10a806a9691af13005196b1 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 2 Jun 2005 17:27:27 +0000 Subject: [PATCH] change bx if a bogus mouse button is selected for button data. Fixed The Patrician (Der Patrizer) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2215 --- src/ints/mouse.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 0c40ff53..a9a9479a 100644 --- a/src/ints/mouse.cpp +++ b/src/ints/mouse.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: mouse.cpp,v 1.49 2005-04-21 18:34:47 qbix79 Exp $ */ +/* $Id: mouse.cpp,v 1.50 2005-06-02 17:27:27 qbix79 Exp $ */ #include #include @@ -631,6 +631,7 @@ static Bitu INT33_Handler(void) { { Bit16u but=reg_bx; reg_ax=mouse.buttons; + reg_bx++; if (but>=MOUSE_BUTTONS) break; reg_cx=mouse.last_pressed_x[but]; reg_dx=mouse.last_pressed_y[but]; @@ -642,6 +643,7 @@ static Bitu INT33_Handler(void) { { Bit16u but=reg_bx; reg_ax=mouse.buttons; + reg_bx++; if (but>=MOUSE_BUTTONS) break; reg_cx=mouse.last_released_x[but]; reg_dx=mouse.last_released_y[but];