From 519aeb3d973a971e1a28a5f0654a27fa650c7552 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 13 Jul 2004 16:56:06 +0000 Subject: [PATCH] New larry 6 hack. Renders Wayne's world hack obselete (Thank you c2woody!) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1887 --- src/ints/mouse.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 120d5983..17430a02 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.40 2004-07-11 20:02:08 qbix79 Exp $ */ +/* $Id: mouse.cpp,v 1.41 2004-07-13 16:56:06 qbix79 Exp $ */ #include #include @@ -484,19 +484,12 @@ static void SetMickeyPixelRate(Bit16s px, Bit16s py){ } }; static void SetSensitivity(Bit16s px, Bit16s py){ - if ((px!=0) && (py!=0)) { - px--; //Inspired by cutemouse - py--; //Although their cursor update routine is far more complex then ours - mouse.senv_x=(static_cast(px)*px)/3600.0 +1.0/3.0; - mouse.senv_y=(static_cast(py)*py)/3600.0 +1.0/3.0; - } - }; @@ -550,7 +543,7 @@ void Mouse_NewVideoMode(void) mouse.min_x = 0; mouse.min_y = 0; // Dont set max coordinates here. it is done by SetResolution! - mouse.x = 0; // civ wont work otherwise + mouse.x = static_cast(mouse.max_x / 2); mouse.y = static_cast(mouse.max_y / 2); mouse.events = 0; mouse.mickey_x = 0; @@ -664,7 +657,6 @@ static Bitu INT33_Handler(void) { Bits max,min; if ((Bit16s)reg_cx<(Bit16s)reg_dx) { min=(Bit16s)reg_cx;max=(Bit16s)reg_dx;} else { min=(Bit16s)reg_dx;max=(Bit16s)reg_cx;} - if(min == max) break; //Wayne's World mouse.min_x=min; mouse.max_x=max; LOG(LOG_MOUSE,LOG_NORMAL)("Define Hortizontal range min:%d max:%d",min,max); @@ -677,7 +669,6 @@ static Bitu INT33_Handler(void) { Bits max,min; if ((Bit16s)reg_cx<(Bit16s)reg_dx) { min=(Bit16s)reg_cx;max=(Bit16s)reg_dx;} else { min=(Bit16s)reg_dx;max=(Bit16s)reg_cx;} - if(min == max) break; //Wayne's World mouse.min_y=min; mouse.max_y=max; LOG(LOG_MOUSE,LOG_NORMAL)("Define Vertical range min:%d max:%d",min,max);