/kernel/trunk/hid/mousedrv.inc |
---|
102,10 → 102,24 |
mul ecx |
movzx edx, byte [display_data+ebx+eax] |
shl edx, 8 |
push [edx+PROC_BASE+APPDATA.cursor] |
mov ecx, [edx+PROC_BASE+APPDATA.cursor] |
cmp [ecx+CURSOR.magic], 'CURS' |
jne .fail |
cmp [ecx+CURSOR.size], CURSOR_SIZE |
jne .fail |
push ecx |
call [set_hw_cursor] |
popad |
ret |
.fail: |
mov ecx, [def_cursor] |
mov [edx+PROC_BASE+APPDATA.cursor], ecx |
push ecx |
call [set_hw_cursor] |
popad |
ret |
@@: |
pushad |
; save & draw |