Rev 593 | Rev 739 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 593 | Rev 630 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 593 $ |
8 | $Revision: 630 $ |
9 | 9 | ||
10 | 10 | ||
Line 96... | Line 96... | ||
96 | ret |
96 | ret |
Line 97... | Line 97... | ||
97 | 97 | ||
Line 98... | Line 98... | ||
98 | save_draw_mouse: |
98 | save_draw_mouse: |
99 | 99 | ||
100 | cmp [set_hw_cursor], 0 |
100 | cmp [set_hw_cursor], 0 |
Line 101... | Line 101... | ||
101 | jz @F |
101 | jz .no_hw_cursor |
102 | pushad |
102 | pushad |
103 | 103 | ||
Line 114... | Line 114... | ||
114 | 114 | ||
115 | movzx edx, byte [display_data+ebx+eax] |
115 | movzx edx, byte [display_data+ebx+eax] |
116 | shl edx, 8 |
116 | shl edx, 8 |
Line -... | Line 117... | ||
- | 117 | mov ecx, [edx+SLOT_BASE+APPDATA.cursor] |
|
- | 118 | ||
- | 119 | cmp ecx, [current_cursor] |
|
117 | mov ecx, [edx+SLOT_BASE+APPDATA.cursor] |
120 | je .draw |
118 | 121 | ||
- | 122 | cmp [ecx+CURSOR.magic], 'CURS' |
|
- | 123 | jne .fail |
|
- | 124 | ||
- | 125 | push ecx |
|
- | 126 | call [select_hw_cursor] |
|
119 | cmp [ecx+CURSOR.magic], 'CURS' |
127 | mov [current_cursor], ecx |
120 | jne .fail |
128 | |
- | 129 | ; cmp [ecx+CURSOR.size], CURSOR_SIZE |
|
121 | ; cmp [ecx+CURSOR.size], CURSOR_SIZE |
130 | ; jne .fail |
122 | ; jne .fail |
131 | |
123 | push ecx |
132 | .draw: |
124 | call [set_hw_cursor] |
133 | stdcall [set_hw_cursor], ecx |
125 | popad |
134 | popad |
126 | ret |
135 | ret |
127 | .fail: |
136 | .fail: |
128 | mov ecx, [def_cursor] |
- | |
129 | mov [edx+SLOT_BASE+APPDATA.cursor], ecx |
137 | mov ecx, [def_cursor] |
130 | push ecx |
138 | mov [edx+SLOT_BASE+APPDATA.cursor], ecx |
131 | call [set_hw_cursor] |
139 | stdcall [set_hw_cursor], ecx |
Line 132... | Line 140... | ||
132 | popad |
140 | popad |
133 | ret |
141 | ret |
134 | 142 | ||
135 | @@: |
143 | .no_hw_cursor: |
136 | pushad |
144 | pushad |
137 | ; save & draw |
145 | ; save & draw |