From 416fbac8e3ddc3400a54850735121fc754c537d6 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 18 Mar 2004 19:53:08 +0000 Subject: [PATCH] Fix relative motion when mode switching and ps2callback is used Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1733 --- src/ints/mouse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index d4ef2b09..eb0ee483 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.33 2004-03-14 13:39:45 qbix79 Exp $ */ +/* $Id: mouse.cpp,v 1.34 2004-03-18 19:53:08 qbix79 Exp $ */ #include #include "dosbox.h" @@ -561,6 +561,9 @@ void Mouse_NewVideoMode(void) mouse.oldshown=-1; SetMickeyPixelRate(8,16); + oldmouseX = static_cast(mouse.x); + oldmouseY = static_cast(mouse.y); + }