Rev 9911 | Rev 9941 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9911 | Rev 9926 | ||
---|---|---|---|
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: 9911 $ |
9 | $Revision: 9926 $ |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | button.MAX_BUTTONS = 4095 |
11 | button.MAX_BUTTONS = 4095 |
Line 93... | Line 93... | ||
93 | or cx, cx |
93 | or cx, cx |
94 | jle .exit |
94 | jle .exit |
Line 95... | Line 95... | ||
95 | 95 | ||
96 | ; make coordinates clientbox-relative |
96 | ; make coordinates clientbox-relative |
97 | push eax |
97 | push eax |
- | 98 | mov eax, [current_slot_idx] |
|
98 | mov eax, [current_slot] |
99 | shl eax, BSF sizeof.WDATA |
99 | rol ebx, 16 |
100 | rol ebx, 16 |
100 | add bx, word[eax + APPDATA.wnd_clientbox.left] |
101 | add bx, word[window_data + eax + WDATA.clientbox.left] |
101 | rol ebx, 16 |
102 | rol ebx, 16 |
102 | rol ecx, 16 |
103 | rol ecx, 16 |
103 | add cx, word[eax + APPDATA.wnd_clientbox.top] |
104 | add cx, word[window_data + eax + WDATA.clientbox.top] |
104 | rol ecx, 16 |
105 | rol ecx, 16 |
Line 105... | Line 106... | ||
105 | pop eax |
106 | pop eax |
106 | 107 | ||
Line 337... | Line 338... | ||
337 | ; invert system button border |
338 | ; invert system button border |
338 | pushad |
339 | pushad |
339 | mov esi, eax |
340 | mov esi, eax |
340 | mov edi, ebx |
341 | mov edi, ebx |
341 | movzx ecx, [esi + SYS_BUTTON.pslot] |
342 | movzx ecx, [esi + SYS_BUTTON.pslot] |
342 | shl ecx, 5 |
- | |
343 | add ecx, window_data |
343 | shl ecx, BSF sizeof.WDATA |
344 | mov eax, dword[esi + SYS_BUTTON.left] |
344 | mov eax, dword[esi + SYS_BUTTON.left] |
345 | mov ebx, dword[esi + SYS_BUTTON.top] |
345 | mov ebx, dword[esi + SYS_BUTTON.top] |
346 | add eax, [ecx + WDATA.box.left] |
346 | add eax, [window_data + ecx + WDATA.box.left] |
347 | add ebx, [ecx + WDATA.box.top] |
347 | add ebx, [window_data + ecx + WDATA.box.top] |
348 | mov ecx, eax |
348 | mov ecx, eax |
349 | mov edx, ebx |
349 | mov edx, ebx |
350 | bt edi, 30 |
350 | bt edi, 30 |
351 | jc @f |
351 | jc @f |
352 | inc ax |
352 | inc ax |