From 30193f5eedfa848f91c85136a59adb9e7918a5a3 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 21 Apr 2005 18:34:47 +0000 Subject: [PATCH] fix for 1173099. Might need a different fix oneday. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2181 --- src/ints/mouse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 0cf1f92a..0c40ff53 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.48 2005-03-24 19:16:33 qbix79 Exp $ */ +/* $Id: mouse.cpp,v 1.49 2005-04-21 18:34:47 qbix79 Exp $ */ #include #include @@ -339,8 +339,8 @@ void DrawCursor() { mouse.clipx = CurMode->swidth-1; /* Get from bios ? */ mouse.clipy = CurMode->sheight-1; - Bit16s xratio = 640 / CurMode->swidth; /* might be mouse.max_x-.mouse.min_x+1/swidth */ - /* might even be vidmode == 0x13?2:1 */ + Bit16s xratio = 640 / CurMode->swidth;/* might be vidmode == 0x13?2:1 */ + if(xratio==0) xratio = 1; RestoreCursorBackground();