Rev 9926 | Rev 9941 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9926 | Rev 9930 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. 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: 9926 $ |
8 | $Revision: 9930 $ |
9 | 9 | ||
10 | 10 | ||
Line 292... | Line 292... | ||
292 | cmp [eax + CURSOR.magic], 'CURS' |
292 | cmp [eax + CURSOR.magic], 'CURS' |
293 | jne .fail |
293 | jne .fail |
294 | ; cmp [eax+CURSOR.size], CURSOR_SIZE |
294 | ; cmp [eax+CURSOR.size], CURSOR_SIZE |
295 | ; jne .fail |
295 | ; jne .fail |
296 | mov ebx, [current_slot] |
296 | mov ebx, [current_slot] |
- | 297 | mov ebx, [ebx + APPDATA.window] |
|
297 | xchg eax, [ebx + APPDATA.cursor] |
298 | xchg eax, [ebx + WDATA.cursor] |
298 | jmp .end |
299 | jmp .end |
299 | ;-------------------------------------- |
300 | ;-------------------------------------- |
300 | align 4 |
301 | align 4 |
301 | .fail: |
302 | .fail: |
302 | mov eax, [def_cursor] |
303 | mov eax, [def_cursor] |
303 | mov ebx, [current_slot] |
304 | mov ebx, [current_slot] |
- | 305 | mov ebx, [ebx + APPDATA.window] |
|
304 | xchg eax, [ebx + APPDATA.cursor] |
306 | xchg eax, [ebx + WDATA.cursor] |
305 | align 4 |
307 | align 4 |
306 | .end: |
308 | .end: |
307 | mov [redrawmouse_unconditional], 1 |
309 | mov [redrawmouse_unconditional], 1 |
308 | call __sys_draw_pointer |
310 | call __sys_draw_pointer |
309 | ret |
311 | ret |
Line 462... | Line 464... | ||
462 | mov ebx, [ebx + APPDATA.tid] |
464 | mov ebx, [ebx + APPDATA.tid] |
463 | cmp ebx, [esi + CURSOR.pid] |
465 | cmp ebx, [esi + CURSOR.pid] |
464 | jne .fail |
466 | jne .fail |
Line 465... | Line 467... | ||
465 | 467 | ||
- | 468 | mov ebx, [current_slot] |
|
466 | mov ebx, [current_slot] |
469 | mov ebx, [ebx + APPDATA.window] |
467 | cmp esi, [ebx + APPDATA.cursor] |
470 | cmp esi, [ebx + WDATA.cursor] |
468 | jne @F |
471 | jne @F |
469 | mov eax, [def_cursor] |
472 | mov eax, [def_cursor] |
470 | mov [ebx + APPDATA.cursor], eax |
473 | mov [ebx + WDATA.cursor], eax |
471 | ;-------------------------------------- |
474 | ;-------------------------------------- |
472 | align 4 |
475 | align 4 |
473 | @@: |
476 | @@: |
474 | mov eax, [hcursor] |
477 | mov eax, [hcursor] |