Subversion Repositories Kolibri OS

Rev

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

Rev 214 Rev 221
Line 40... Line 40...
40
draw_mouse_under:
40
draw_mouse_under:
41
        ; return old picture
41
        ; return old picture
Line 42... Line 42...
42
 
42
 
43
        cmp [set_hw_cursor], 0
43
        cmp [set_hw_cursor], 0
-
 
44
        jz @F
-
 
45
        pushad
-
 
46
        movzx  eax,word [0xfb4a]
-
 
47
        movzx  ebx,word [0xfb4c]
-
 
48
        stdcall [hw_restore], eax, ebx
44
        jz @F 
49
        popad
45
        ret
50
        ret
46
@@:
51
@@:
47
        pushad
52
        pushad
48
        xor    ecx,ecx
53
        xor    ecx,ecx
Line 81... Line 86...
81
 
86
 
Line 82... Line 87...
82
save_draw_mouse:
87
save_draw_mouse:
83
 
88
 
-
 
89
        cmp [set_hw_cursor], 0
-
 
90
        jz @F
84
        cmp [set_hw_cursor], 0
91
        pushad
85
        jz @F
92
 
86
        mov    [0xfb4a],ax
93
        mov    [0xfb4a],ax
87
        mov    [0xfb4c],bx
94
        mov    [0xfb4c],bx
88
        movzx  ebx,word [0xfb0c]
-
 
89
        movzx  eax,word [0xfb0a]
95
        movzx  eax,word [0xfb0c]
-
 
96
        movzx  ebx,word [0xfb0a]
-
 
97
        push eax
-
 
98
        push ebx
-
 
99
 
-
 
100
        mov ecx, [0xfe00]
-
 
101
        inc ecx
-
 
102
        mul ecx
-
 
103
        movzx edx, byte [display_data+ebx+eax]
90
        push ebx
104
        shl edx, 8
-
 
105
        push [edx+PROC_BASE+APPDATA.cursor]
91
        push eax
106
        call [set_hw_cursor]
92
        call [set_hw_cursor]
107
        popad
93
        ret
108
        ret
94
@@:
109
@@:
95
        pushad
110
        pushad