Rev 5154 | Rev 5351 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5154 | Rev 5350 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2014. 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: 5154 $ |
8 | $Revision: 5350 $ |
9 | 9 | ||
10 | 10 | ||
Line 499... | Line 499... | ||
499 | .absolute_x: |
499 | .absolute_x: |
500 | mov edx, [_display.width] |
500 | mov edx, [_display.width] |
501 | mul edx |
501 | mul edx |
502 | shr eax, 15 |
502 | shr eax, 15 |
503 | .check_x: |
503 | .check_x: |
504 | cmp ax, word[Screen_Max_X] |
504 | cmp ax, word[_display.width] |
505 | jl .set_x |
505 | jl .set_x |
506 | mov ax, word[Screen_Max_X] |
506 | mov ax, word[_display.width] |
- | 507 | dec ax |
|
507 | .set_x: |
508 | .set_x: |
508 | mov [MOUSE_X], ax |
509 | mov [MOUSE_X], ax |
509 | ;-------------------------------------- |
510 | ;-------------------------------------- |
510 | mov eax, [YMoving] |
511 | mov eax, [YMoving] |
511 | test [BtnState], 0x40000000 |
512 | test [BtnState], 0x40000000 |
Line 520... | Line 521... | ||
520 | .absolute_y: |
521 | .absolute_y: |
521 | mov edx, [_display.height] |
522 | mov edx, [_display.height] |
522 | mul edx |
523 | mul edx |
523 | shr eax, 15 |
524 | shr eax, 15 |
524 | .check_y: |
525 | .check_y: |
525 | cmp ax, word[Screen_Max_Y] |
526 | cmp ax, word[_display.height] |
526 | jl .set_y |
527 | jl .set_y |
527 | mov ax, word[Screen_Max_Y] |
528 | mov ax, word[_display.height] |
- | 529 | dec ax |
|
528 | .set_y: |
530 | .set_y: |
529 | mov [MOUSE_Y], ax |
531 | mov [MOUSE_Y], ax |
530 | ;-------------------------------------- |
532 | ;-------------------------------------- |
531 | mov eax, [VScroll] |
533 | mov eax, [VScroll] |
532 | add [MOUSE_SCROLL_V], ax |
534 | add [MOUSE_SCROLL_V], ax |