Define mouse cursor range : detect and handle 'wrong' parameters
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@561
This commit is contained in:
parent
ca712c0043
commit
0db8c2700f
1 changed files with 14 additions and 4 deletions
|
@ -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<reg_dx) {
|
||||
mouse.min_x=reg_cx;
|
||||
mouse.max_x=reg_dx;
|
||||
} else {
|
||||
mouse.min_x=reg_dx;
|
||||
mouse.max_x=reg_cx;
|
||||
};
|
||||
break;
|
||||
case 0x08: /* Define vertical cursor range */
|
||||
mouse.min_y=reg_cx;
|
||||
mouse.max_y=reg_dx;
|
||||
if (reg_cx<reg_dx) {
|
||||
mouse.min_y=reg_cx;
|
||||
mouse.max_y=reg_dx;
|
||||
} else {
|
||||
mouse.min_y=reg_dx;
|
||||
mouse.max_y=reg_cx;
|
||||
};
|
||||
break;
|
||||
case 0x09: /* Define GFX Cursor */
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue