System function 18,19,5 now checks if mouse coordinates are valid.
git-svn-id: svn://kolibrios.org@1537 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
718d8df6de
commit
2462a14655
@ -2233,10 +2233,13 @@ sysfn_mouse_acceleration: ; 18.19 = set/get mouse features
|
|||||||
; cmp ecx,4 ; set mouse pointer position
|
; cmp ecx,4 ; set mouse pointer position
|
||||||
dec ecx
|
dec ecx
|
||||||
jnz .set_mouse_button
|
jnz .set_mouse_button
|
||||||
mov [MOUSE_Y],dx ;y
|
cmp dx, word[Screen_Max_X]
|
||||||
ror edx,16
|
ja .end
|
||||||
mov [MOUSE_X],dx ;x
|
|
||||||
rol edx,16
|
rol edx,16
|
||||||
|
cmp dx, word[Screen_Max_Y]
|
||||||
|
ja .end
|
||||||
|
rol edx,16
|
||||||
|
mov [MOUSE_X], edx
|
||||||
ret
|
ret
|
||||||
.set_mouse_button:
|
.set_mouse_button:
|
||||||
; cmp ecx,5 ; set mouse button features
|
; cmp ecx,5 ; set mouse button features
|
||||||
|
Loading…
Reference in New Issue
Block a user