From 0db8c2700ffafc66191a153a989c03c933b4d6b9 Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Thu, 5 Dec 2002 15:58:01 +0000 Subject: [PATCH] Define mouse cursor range : detect and handle 'wrong' parameters Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@561 --- src/ints/mouse.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/ints/mouse.cpp b/src/ints/mouse.cpp index 77556157..912bd469 100644 --- a/src/ints/mouse.cpp +++ b/src/ints/mouse.cpp @@ -449,12 +449,22 @@ static Bitu INT33_Handler(void) { break; } case 0x07: /* Define horizontal cursor range */ - mouse.min_x=reg_cx; - mouse.max_x=reg_dx; + if (reg_cx