From d47032feeb2dea04cc4bd46f17f4343fe40840f4 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 11 Jan 2004 18:49:59 +0000 Subject: [PATCH] made new window do less and mouse_reset a bit more. Fixes ironseed Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1571 --- src/ints/mouse.cpp | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 7ecf0f68..68a21e85 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.29 2004-01-09 16:51:22 qbix79 Exp $ */ +/* $Id: mouse.cpp,v 1.30 2004-01-11 18:49:59 qbix79 Exp $ */ #include #include "dosbox.h" @@ -418,14 +418,11 @@ static void SetMickeyPixelRate(Bit16s px, Bit16s py) }; static void mouse_reset_hardware(void){ - mouse.sub_mask=0; - mouse.sub_seg=0; - mouse.sub_ofs=0; PIC_SetIRQMask(MOUSE_IRQ,false); }; -static void mouse_reset(void) -{ +void Mouse_NewVideoMode(void) +{ //Does way to much. Many of this stuff should be moved to mouse_reset one day WriteMouseIntVector(); // real_writed(0,(0x74<<2),CALLBACK_RealPointer(call_int74)); @@ -492,14 +489,20 @@ static void mouse_reset(void) mouse.cursorType = 0; mouse.enabled=true; mouse.oldshown=-1; - + SetMickeyPixelRate(8,16); } -void Mouse_NewVideoMode(void) -{ - //mouse.shown = -1; - mouse_reset(); + + +static void mouse_reset(void) { +//Much to empty Mouse_NewVideoMode contains stuff that should be in here + Mouse_NewVideoMode(); + + mouse.sub_mask=0; + mouse.sub_seg=0; + mouse.sub_ofs=0; + //Added this for cd-v19 }