Rev 1928 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1928 | Rev 1929 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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 | ||
8 | $Revision: 1928 $ |
- | |
Line 9... | Line 8... | ||
9 | 8 | $Revision: 1929 $ |
|
10 | 9 | ||
11 | 10 | ||
Line 31... | Line 30... | ||
31 | mouse_delay dd 10 |
30 | mouse_delay dd 10 |
32 | mouse_speed_factor: dd 3 |
31 | mouse_speed_factor: dd 3 |
33 | mouse_timer_ticks dd 0 |
32 | mouse_timer_ticks dd 0 |
34 | endg |
33 | endg |
Line 35... | Line -... | ||
35 | - | ||
36 | ;include 'm_com.inc' |
- | |
Line 37... | Line 34... | ||
37 | 34 | ||
38 | 35 | ||
Line 39... | Line 36... | ||
39 | draw_mouse_under: |
36 | draw_mouse_under: |
Line 95... | Line 92... | ||
95 | movzx eax,word [MOUSE_Y] |
92 | movzx eax,word [MOUSE_Y] |
96 | movzx ebx,word [MOUSE_X] |
93 | movzx ebx,word [MOUSE_X] |
97 | push eax |
94 | push eax |
98 | push ebx |
95 | push ebx |
Line 99... | Line 96... | ||
99 | 96 | ||
100 | mov ecx, ebx ; <<<< |
97 | mov ecx, [Screen_Max_X] |
101 | shr ecx, 1 |
- | |
102 | imul ecx, [_WinMapWidth] |
- | |
103 | shr eax, 1 |
- | |
104 | shr eax, 1 |
98 | inc ecx |
105 | add eax, ecx |
99 | mul ecx |
106 | add eax, [_WinMapAddress] |
100 | add eax, [_WinMapAddress] |
107 | movzx edx, byte [ebx+eax] |
101 | movzx edx, byte [ebx+eax] |
108 | shl edx, 8 |
102 | shl edx, 8 |
Line 275... | Line 269... | ||
275 | mov edx,[CURRENT_TASK] |
269 | mov edx,[CURRENT_TASK] |
276 | shl edx,5 |
270 | shl edx,5 |
277 | add edx,window_data |
271 | add edx,window_data |
278 | movzx eax, word [MOUSE_X] |
272 | movzx eax, word [MOUSE_X] |
279 | movzx ebx, word [MOUSE_Y] |
273 | movzx ebx, word [MOUSE_Y] |
280 | mov ecx, ebx ; <<<< |
- | |
281 | shr ecx, 1 |
- | |
282 | imul ecx, [_WinMapWidth] |
274 | mov ecx,[Screen_Max_X] |
283 | shr eax, 1 |
275 | inc ecx |
284 | shr eax, 1 |
276 | imul ecx,ebx |
285 | add ecx, eax |
277 | add ecx,eax |
286 | add ecx, [_WinMapAddress] |
278 | add ecx, [_WinMapAddress] |
287 | mov eax, [CURRENT_TASK] |
279 | mov eax, [CURRENT_TASK] |
288 | movzx ebx, byte [ecx] |
280 | movzx ebx, byte [ecx] |
289 | cmp eax,ebx |
281 | cmp eax,ebx |