Rev 9926 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9926 | Rev 9941 | ||
---|---|---|---|
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: 9926 $ |
9 | $Revision: 9941 $ |
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 | mov eax, [eax + APPDATA.window] |
100 | rol ebx, 16 |
100 | rol ebx, 16 |
101 | add bx, word[window_data + eax + WDATA.clientbox.left] |
101 | add bx, word[eax + WDATA.clientbox.left] |
102 | rol ebx, 16 |
102 | rol ebx, 16 |
103 | rol ecx, 16 |
103 | rol ecx, 16 |
104 | add cx, word[window_data + eax + WDATA.clientbox.top] |
104 | add cx, word[eax + WDATA.clientbox.top] |
105 | rol ecx, 16 |
105 | rol ecx, 16 |
Line 106... | Line 106... | ||
106 | pop eax |
106 | pop eax |
107 | 107 | ||
Line 171... | Line 171... | ||
171 | .draw: ; calculate window-relative coordinates |
171 | .draw: ; calculate window-relative coordinates |
172 | movzx ebp, cx |
172 | movzx ebp, cx |
173 | dec ebp |
173 | dec ebp |
174 | shr ebx, 16 |
174 | shr ebx, 16 |
175 | shr ecx, 16 |
175 | shr ecx, 16 |
176 | mov eax, [current_slot_idx] |
176 | mov eax, [current_slot] |
177 | shl eax, BSF sizeof.WDATA |
177 | mov eax, [eax + APPDATA.window] |
178 | add ebx, [eax + window_data + WDATA.box.left] |
178 | add ebx, [eax + WDATA.box.left] |
179 | add ecx, [eax + window_data + WDATA.box.top] |
179 | add ecx, [eax + WDATA.box.top] |
180 | mov eax, ebx |
180 | mov eax, ebx |
181 | inc eax |
181 | inc eax |
182 | mov edx, ebx |
182 | mov edx, ebx |
183 | add dx, [esp+8] |
183 | add dx, [esp+8] |
184 | dec edx |
184 | dec edx |