Rev 1424 | Rev 1465 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1424 | Rev 1460 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
4 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; ;; |
6 | ;; ;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 8... | Line 8... | ||
8 | 8 | ||
Line 9... | Line 9... | ||
9 | $Revision: 1424 $ |
9 | $Revision: 1460 $ |
10 | 10 | ||
11 | ;============================================================================== |
11 | ;============================================================================== |
Line 854... | Line 854... | ||
854 | ;------------------------------------------------------------------------------ |
854 | ;------------------------------------------------------------------------------ |
855 | waredraw: ;//////////////////////////////////////////////////////////////////// |
855 | waredraw: ;//////////////////////////////////////////////////////////////////// |
856 | ;------------------------------------------------------------------------------ |
856 | ;------------------------------------------------------------------------------ |
857 | ;? Activate window, redrawing if necessary |
857 | ;? Activate window, redrawing if necessary |
858 | ;------------------------------------------------------------------------------ |
858 | ;------------------------------------------------------------------------------ |
859 | push -1 |
859 | ; push -1 |
860 | mov eax, [TASK_COUNT] |
860 | mov eax, [TASK_COUNT] |
861 | lea eax, [WIN_POS + eax * 2] |
861 | lea eax, [WIN_POS + eax * 2] |
862 | cmp eax, esi |
862 | cmp eax, esi |
863 | pop eax |
863 | ; pop eax |
- | 864 | or eax,-1 |
|
864 | je .exit |
865 | je .exit |
Line 865... | Line 866... | ||
865 | 866 | ||
866 | ; is it overlapped by another window now? |
867 | ; is it overlapped by another window now? |
867 | push ecx |
868 | push ecx |
Line 899... | Line 900... | ||
899 | jmp .exit |
900 | jmp .exit |
Line 900... | Line 901... | ||
900 | 901 | ||
901 | .do_not_draw: |
902 | .do_not_draw: |
902 | ; no it's not, just activate the window |
903 | ; no it's not, just activate the window |
903 | call window._.window_activate |
- | |
904 | mov byte[MOUSE_BACKGROUND], 0 |
- | |
905 | mov byte[DONT_DRAW_MOUSE], 0 |
904 | call window._.window_activate |
- | 905 | xor eax, eax |
|
- | 906 | mov byte[MOUSE_BACKGROUND], al |
|
- | 907 | mov byte[DONT_DRAW_MOUSE], al |
|
Line 906... | Line 908... | ||
906 | xor eax, eax |
908 | |
907 | 909 | ||
908 | .exit: |
910 | .exit: |
909 | mov byte[MOUSE_DOWN], 0 |
911 | mov byte[MOUSE_DOWN], 0 |