/kernel/branches/Kolibri-A/trunk/hid/mousedrv.inc |
---|
8,7 → 8,6 |
$Revision$ |
; check mouse |
; |
; |
33,9 → 32,7 |
mouse_timer_ticks dd 0 |
endg |
;include 'm_com.inc' |
draw_mouse_under: |
; return old picture |
97,12 → 94,9 |
push eax |
push ebx |
mov ecx, ebx ; <<<< |
shr ecx, 1 |
imul ecx, [_WinMapWidth] |
shr eax, 1 |
shr eax, 1 |
add eax, ecx |
mov ecx, [Screen_Max_X] |
inc ecx |
mul ecx |
add eax, [_WinMapAddress] |
movzx edx, byte [ebx+eax] |
shl edx, 8 |
277,11 → 271,9 |
add edx,window_data |
movzx eax, word [MOUSE_X] |
movzx ebx, word [MOUSE_Y] |
mov ecx, ebx ; <<<< |
shr ecx, 1 |
imul ecx, [_WinMapWidth] |
shr eax, 1 |
shr eax, 1 |
mov ecx,[Screen_Max_X] |
inc ecx |
imul ecx,ebx |
add ecx, eax |
add ecx, [_WinMapAddress] |
mov eax, [CURRENT_TASK] |