Rev 9828 | Rev 9848 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9828 | Rev 9831 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2010-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2010-2015. 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: 9828 $ |
8 | $Revision: 9831 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | include 'mousepointer.inc' |
10 | include 'mousepointer.inc' |
Line 716... | Line 716... | ||
716 | 716 | ||
717 | .msscreen: |
717 | .msscreen: |
718 | mov eax, [MOUSE_X] |
718 | mov eax, [MOUSE_X] |
719 | shl eax, 16 |
719 | shl eax, 16 |
720 | mov ax, [MOUSE_Y] |
720 | mov ax, [MOUSE_Y] |
721 | mov [esp + SYSCALL_STACK._eax], eax |
721 | mov [esp + SYSCALL_STACK.eax], eax |
722 | @@: |
722 | @@: |
Line 723... | Line 723... | ||
723 | ret |
723 | ret |
724 | 724 | ||
Line 735... | Line 735... | ||
735 | mov edi, [current_slot] |
735 | mov edi, [current_slot] |
736 | sub ax, word[edi + APPDATA.wnd_clientbox.top] |
736 | sub ax, word[edi + APPDATA.wnd_clientbox.top] |
737 | rol eax, 16 |
737 | rol eax, 16 |
738 | sub ax, word[edi + APPDATA.wnd_clientbox.left] |
738 | sub ax, word[edi + APPDATA.wnd_clientbox.left] |
739 | rol eax, 16 |
739 | rol eax, 16 |
740 | mov [esp + SYSCALL_STACK._eax], eax |
740 | mov [esp + SYSCALL_STACK.eax], eax |
741 | ret |
741 | ret |
Line 742... | Line 742... | ||
742 | 742 | ||
743 | .msbutton: |
743 | .msbutton: |
744 | movzx eax, byte [BTN_DOWN] |
744 | movzx eax, byte [BTN_DOWN] |
745 | mov [esp + SYSCALL_STACK._eax], eax |
745 | mov [esp + SYSCALL_STACK.eax], eax |
Line 746... | Line 746... | ||
746 | ret |
746 | ret |
747 | 747 | ||
748 | .msbuttonExt: |
748 | .msbuttonExt: |
749 | mov eax, [BTN_DOWN] |
749 | mov eax, [BTN_DOWN] |
Line 750... | Line 750... | ||
750 | mov [esp + SYSCALL_STACK._eax], eax |
750 | mov [esp + SYSCALL_STACK.eax], eax |
751 | ret |
751 | ret |
752 | 752 | ||
753 | .app_load_cursor: |
753 | .app_load_cursor: |
754 | cmp ecx, OS_BASE |
754 | cmp ecx, OS_BASE |
755 | jae @f |
755 | jae @f |
756 | stdcall load_cursor, ecx, edx |
756 | stdcall load_cursor, ecx, edx |
Line 757... | Line 757... | ||
757 | mov [esp + SYSCALL_STACK._eax], eax |
757 | mov [esp + SYSCALL_STACK.eax], eax |
758 | @@: |
758 | @@: |
Line 769... | Line 769... | ||
769 | call getFullPath |
769 | call getFullPath |
770 | pop ebp |
770 | pop ebp |
771 | test eax, eax |
771 | test eax, eax |
772 | jz @f |
772 | jz @f |
773 | stdcall load_cursor, ebp, LOAD_FROM_FILE |
773 | stdcall load_cursor, ebp, LOAD_FROM_FILE |
774 | mov [esp + SYSCALL_STACK._eax], eax |
774 | mov [esp + SYSCALL_STACK.eax], eax |
775 | @@: |
775 | @@: |
776 | stdcall kernel_free, ebp |
776 | stdcall kernel_free, ebp |
777 | ret |
777 | ret |
Line 778... | Line 778... | ||
778 | 778 | ||
779 | .app_set_cursor: |
779 | .app_set_cursor: |
780 | stdcall set_cursor, ecx |
780 | stdcall set_cursor, ecx |
781 | mov [esp + SYSCALL_STACK._eax], eax |
781 | mov [esp + SYSCALL_STACK.eax], eax |
Line 782... | Line 782... | ||
782 | ret |
782 | ret |
783 | 783 | ||
784 | .app_delete_cursor: |
784 | .app_delete_cursor: |
785 | stdcall delete_cursor, ecx |
785 | stdcall delete_cursor, ecx |
Line 786... | Line 786... | ||
786 | mov [esp + SYSCALL_STACK._eax], eax |
786 | mov [esp + SYSCALL_STACK.eax], eax |
787 | ret |
787 | ret |
788 | 788 | ||
789 | .msz: |
789 | .msz: |
790 | mov edi, [thread_count] |
790 | mov edi, [thread_count] |
791 | movzx edi, word [WIN_POS + edi*2] |
791 | movzx edi, word [WIN_POS + edi*2] |
792 | cmp edi, [current_slot_idx] |
792 | cmp edi, [current_slot_idx] |
793 | jne @f |
793 | jne @f |
794 | mov ax, [MOUSE_SCROLL_H] |
794 | mov ax, [MOUSE_SCROLL_H] |
795 | shl eax, 16 |
795 | shl eax, 16 |
796 | mov ax, [MOUSE_SCROLL_V] |
796 | mov ax, [MOUSE_SCROLL_V] |
797 | mov [esp + SYSCALL_STACK._eax], eax |
797 | mov [esp + SYSCALL_STACK.eax], eax |
798 | and [MOUSE_SCROLL_H], word 0 |
798 | and [MOUSE_SCROLL_H], word 0 |
799 | and [MOUSE_SCROLL_V], word 0 |
799 | and [MOUSE_SCROLL_V], word 0 |
800 | ret |
800 | ret |
801 | @@: |
801 | @@: |