1
0
Fork 0

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
This commit is contained in:
Peter Veenstra 2005-06-02 17:27:27 +00:00
parent 3c88eaf92d
commit 3700380484

View file

@ -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 <string.h>
#include <math.h>
@ -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];