Subversion Repositories Kolibri OS

Rev

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

Rev 221 Rev 230
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
        push [edx+PROC_BASE+APPDATA.cursor]
105
        mov ecx, [edx+PROC_BASE+APPDATA.cursor]
-
 
106
 
-
 
107
        cmp [ecx+CURSOR.magic], 'CURS'
-
 
108
        jne .fail
-
 
109
        cmp [ecx+CURSOR.size], CURSOR_SIZE
-
 
110
        jne .fail
-
 
111
        push ecx
106
        call [set_hw_cursor]
112
        call [set_hw_cursor]
107
        popad
113
        popad
108
        ret
114
        ret
-
 
115
.fail:
-
 
116
        mov ecx, [def_cursor]
-
 
117
        mov [edx+PROC_BASE+APPDATA.cursor], ecx
-
 
118
        push ecx
-
 
119
        call [set_hw_cursor]
-
 
120
        popad
-
 
121
        ret
-
 
122
 
109
@@:
123
@@:
110
        pushad
124
        pushad
111
        ; save & draw
125
        ; save & draw
112
        mov    [0xfb4a],ax
126
        mov    [0xfb4a],ax
113
        mov    [0xfb4c],bx
127
        mov    [0xfb4c],bx