Rev 5851 | Rev 6585 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5851 | Rev 5870 | ||
---|---|---|---|
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: 5851 $ |
8 | $Revision: 5870 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | include 'mousepointer.inc' |
10 | include 'mousepointer.inc' |
Line 185... | Line 185... | ||
185 | .delta POINT |
185 | .delta POINT |
186 | .last_ticks dd ? |
186 | .last_ticks dd ? |
187 | .action db ? |
187 | .action db ? |
188 | endg |
188 | endg |
Line -... | Line 189... | ||
- | 189 | ||
- | 190 | iglobal |
|
- | 191 | fl_moving db 0 |
|
- | 192 | rb 3 |
|
- | 193 | endg |
|
189 | 194 | ||
190 | align 4 |
195 | align 4 |
191 | ;----------------------------------------------------------------- |
196 | ;----------------------------------------------------------------- |
192 | mouse._.left_button_press_handler: |
197 | mouse._.left_button_press_handler: |
193 | ; Called when left mouse button has been pressed down |
198 | ; Called when left mouse button has been pressed down |
Line 304... | Line 309... | ||
304 | mov ebx, mouse.active_sys_window.new_box |
309 | mov ebx, mouse.active_sys_window.new_box |
305 | call sys_window_end_moving_handler |
310 | call sys_window_end_moving_handler |
Line 306... | Line 311... | ||
306 | 311 | ||
307 | .exit: |
312 | .exit: |
- | 313 | and [mouse.active_sys_window.action], 0 |
|
308 | and [mouse.active_sys_window.action], 0 |
314 | mov [fl_moving], 0 |
Line 309... | Line 315... | ||
309 | ret |
315 | ret |
310 | 316 | ||
311 | mouse._.right_button_press_handler: |
317 | mouse._.right_button_press_handler: |
Line 478... | Line 484... | ||
478 | repe |
484 | repe |
479 | cmpsd |
485 | cmpsd |
480 | pop esi |
486 | pop esi |
481 | je .exit |
487 | je .exit |
Line -... | Line 488... | ||
- | 488 | ||
- | 489 | test [fl_moving], 1 |
|
- | 490 | jnz @f |
|
- | 491 | ||
- | 492 | mov [fl_moving], 1 |
|
- | 493 | push edi |
|
- | 494 | mov edi, esi |
|
- | 495 | shl edi, 5 |
|
- | 496 | add edi, WDATA.box + window_data |
|
- | 497 | call window._.draw_negative_box |
|
- | 498 | pop edi |
|
- | 499 | @@: |
|
- | 500 | ||
482 | 501 | ||
483 | mov [mouse.active_sys_window.last_ticks], 0 |
502 | mov [mouse.active_sys_window.last_ticks], 0 |
Line 484... | Line 503... | ||
484 | call sys_window_moving_handler |
503 | call sys_window_moving_handler |
485 | 504 |