forked from KolibriOS/kolibrios
a window is activated only once when mouse button is pressed
git-svn-id: svn://kolibrios.org@970 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4dc0da3469
commit
a483e0ffe6
@ -1198,24 +1198,22 @@ checkwindows:
|
|||||||
ret
|
ret
|
||||||
.mouse_buttons_pressed:
|
.mouse_buttons_pressed:
|
||||||
;..................................... start 2/4 : modified by vhanla .................
|
;..................................... start 2/4 : modified by vhanla .................
|
||||||
jmp @f
|
uglobal
|
||||||
bPressedMouseXY_W db 0x0
|
bPressedMouseXY_W db 0x0
|
||||||
@@:
|
endg
|
||||||
;..................................... end 2/4 : modified by vhanla ...................
|
;..................................... end 2/4 : modified by vhanla ...................
|
||||||
mov esi,[TASK_COUNT]
|
mov esi,[TASK_COUNT]
|
||||||
inc esi
|
inc esi
|
||||||
|
|
||||||
;..................................... start 3/4 : modified by vhanla .................
|
;..................................... start 3/4 : modified by vhanla .................
|
||||||
push ax
|
|
||||||
cmp [bPressedMouseXY_W],0
|
cmp [bPressedMouseXY_W],0
|
||||||
jnz @f
|
jnz cwloop.exit
|
||||||
mov [bPressedMouseXY_W],1
|
mov [bPressedMouseXY_W],1
|
||||||
mov ax,[MOUSE_X]
|
mov ax,[MOUSE_X]
|
||||||
mov [mx],ax
|
mov [mx],ax
|
||||||
mov ax,[MOUSE_Y]
|
mov ax,[MOUSE_Y]
|
||||||
mov [my],ax
|
mov [my],ax
|
||||||
@@:
|
@@:
|
||||||
pop ax
|
|
||||||
;..................................... end 3/4 : modified by vhanla ...................
|
;..................................... end 3/4 : modified by vhanla ...................
|
||||||
|
|
||||||
cwloop:
|
cwloop:
|
||||||
|
Loading…
Reference in New Issue
Block a user