Rev 673 | Rev 753 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 673 | Rev 739 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 673 $ |
8 | $Revision: 739 $ |
9 | 9 | ||
10 | 10 | ||
Line 320... | Line 320... | ||
320 | shl edx,5 |
320 | shl edx,5 |
321 | add edx,window_data |
321 | add edx,window_data |
322 | movzx eax, word [MOUSE_X] |
322 | movzx eax, word [MOUSE_X] |
323 | movzx ebx, word [MOUSE_Y] |
323 | movzx ebx, word [MOUSE_Y] |
324 | mov ecx,[edx+0] ; mouse inside the area ? |
324 | mov ecx,[edx+0] ; mouse inside the area ? |
325 | add eax,14 |
325 | add eax,10 |
326 | cmp eax,ecx |
326 | cmp eax,ecx |
327 | jb no_mouse_disable |
327 | jb no_mouse_disable |
328 | sub eax,14 |
328 | sub eax,10 |
329 | add ecx,[edx+8] |
329 | add ecx,[edx+8] |
330 | cmp eax,ecx |
330 | cmp eax,ecx |
331 | jg no_mouse_disable |
331 | jg no_mouse_disable |
332 | mov ecx,[edx+4] |
332 | mov ecx,[edx+4] |
333 | add ebx,20 |
333 | add ebx,14 |
334 | cmp ebx,ecx |
334 | cmp ebx,ecx |
335 | jb no_mouse_disable |
335 | jb no_mouse_disable |
336 | sub ebx,20 |
336 | sub ebx,14 |
337 | add ecx,[edx+12] |
337 | add ecx,[edx+12] |
338 | cmp ebx,ecx |
338 | cmp ebx,ecx |
339 | jg no_mouse_disable |
339 | jg no_mouse_disable |
340 | disable_m: |
340 | disable_m: |
341 | cmp dword [MOUSE_VISIBLE],dword 0 |
341 | cmp dword [MOUSE_VISIBLE],dword 0 |