Subversion Repositories Kolibri OS

Rev

Rev 379 | Rev 381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 379 Rev 380
Line 100... Line 100...
100
        mov ecx, [0xfe00]
100
        mov ecx, [0xfe00]
101
        inc ecx
101
        inc ecx
102
        mul ecx
102
        mul ecx
103
        movzx edx, byte [display_data+ebx+eax]
103
        movzx edx, byte [display_data+ebx+eax]
104
        shl edx, 8
104
        shl edx, 8
105
        mov ecx, [edx+PROC_BASE+APPDATA.cursor]
105
        mov ecx, [edx+SLOT_BASE+APPDATA.cursor]
Line 106... Line 106...
106
 
106
 
107
        cmp [ecx+CURSOR.magic], 'CURS'
107
        cmp [ecx+CURSOR.magic], 'CURS'
108
        jne .fail
108
        jne .fail
109
;        cmp [ecx+CURSOR.size], CURSOR_SIZE
109
;        cmp [ecx+CURSOR.size], CURSOR_SIZE
Line 112... Line 112...
112
        call [set_hw_cursor]
112
        call [set_hw_cursor]
113
        popad
113
        popad
114
        ret
114
        ret
115
.fail:
115
.fail:
116
        mov ecx, [def_cursor]
116
        mov ecx, [def_cursor]
117
        mov [edx+PROC_BASE+APPDATA.cursor], ecx
117
        mov [edx+SLOT_BASE+APPDATA.cursor], ecx
118
        push ecx
118
        push ecx
119
        call [set_hw_cursor]
119
        call [set_hw_cursor]
120
        popad
120
        popad
121
        ret
121
        ret