forked from KolibriOS/kolibrios
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
|
||||
dec ecx
|
||||
jnz .set_mouse_button
|
||||
mov [MOUSE_Y],dx ;y
|
||||
ror edx,16
|
||||
mov [MOUSE_X],dx ;x
|
||||
cmp dx, word[Screen_Max_X]
|
||||
ja .end
|
||||
rol edx,16
|
||||
cmp dx, word[Screen_Max_Y]
|
||||
ja .end
|
||||
rol edx,16
|
||||
mov [MOUSE_X], edx
|
||||
ret
|
||||
.set_mouse_button:
|
||||
; cmp ecx,5 ; set mouse button features
|
||||
|
Loading…
Reference in New Issue
Block a user