Rev 6032 | Rev 6044 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6032 | Rev 6035 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;; |
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: 6032 $ |
9 | $Revision: 6035 $ |
Line 10... | Line 10... | ||
10 | 10 | ||
11 | button.MAX_BUTTONS = 4095 |
11 | button.MAX_BUTTONS = 4095 |
Line 304... | Line 304... | ||
304 | add ecx, window_data |
304 | add ecx, window_data |
305 | mov eax, dword[esi + SYS_BUTTON.left] |
305 | mov eax, dword[esi + SYS_BUTTON.left] |
306 | mov ebx, dword[esi + SYS_BUTTON.top] |
306 | mov ebx, dword[esi + SYS_BUTTON.top] |
307 | add eax, [ecx + WDATA.box.left] |
307 | add eax, [ecx + WDATA.box.left] |
308 | add ebx, [ecx + WDATA.box.top] |
308 | add ebx, [ecx + WDATA.box.top] |
- | 309 | mov ecx, eax |
|
- | 310 | mov edx, ebx |
|
- | 311 | inc ax |
|
- | 312 | inc bx |
|
309 | rol eax, 16 |
313 | rol eax, 16 |
310 | rol ebx, 16 |
314 | rol ebx, 16 |
311 | push eax ebx |
- | |
312 | shr eax, 16 |
315 | add ax, cx |
313 | shr ebx, 16 |
316 | add bx, dx |
314 | mov edx, eax |
- | |
315 | add dx, [esp+4] |
- | |
316 | dec edx |
317 | dec ax |
317 | inc eax |
318 | dec bx |
318 | mov ecx, 1000000h |
319 | mov esi, 1000000h |
319 | xor edi, edi |
- | |
320 | inc edi |
- | |
321 | call hline |
- | |
322 | add bx, [esp] |
- | |
323 | call hline |
- | |
324 | inc edx |
- | |
325 | push edx |
- | |
326 | mov edx, ebx |
- | |
327 | sub bx, [esp+4] |
- | |
328 | dec eax |
- | |
329 | dec edx |
- | |
330 | inc ebx |
- | |
331 | call vline |
- | |
332 | pop eax |
- | |
333 | call vline |
320 | call draw_rectangle.forced |
334 | pop eax eax |
- | |
335 | popad |
321 | popad |
336 | .exit: |
322 | .exit: |
337 | ret |
323 | ret |
338 | .popexit: |
324 | .popexit: |
339 | pop edi esi edx ecx |
325 | pop edi esi edx ecx |