Rev 3555 | Rev 5201 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3555 | Rev 4288 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. 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: 3555 $ |
8 | $Revision: 4288 $ |
9 | 9 | ||
10 | 10 | ||
Line 109... | Line 109... | ||
109 | movzx eax, word [MOUSE_Y] |
109 | movzx eax, word [MOUSE_Y] |
110 | movzx ebx, word [MOUSE_X] |
110 | movzx ebx, word [MOUSE_X] |
111 | push eax |
111 | push eax |
112 | push ebx |
112 | push ebx |
Line 113... | Line -... | ||
113 | - | ||
114 | ; mov ecx, [Screen_Max_X] |
- | |
115 | ; inc ecx |
- | |
116 | ; mul ecx |
113 | |
Line 117... | Line 114... | ||
117 | mov eax, [d_width_calc_area + eax*4] |
114 | mov eax, [d_width_calc_area + eax*4] |
118 | 115 | ||
119 | add eax, [_WinMapAddress] |
116 | add eax, [_WinMapAddress] |
Line 492... | Line 489... | ||
492 | mov eax, 0 |
489 | mov eax, 0 |
493 | jmp @@M2 |
490 | jmp @@M2 |
494 | ;-------------------------------------- |
491 | ;-------------------------------------- |
495 | align 4 |
492 | align 4 |
496 | @@M1: |
493 | @@M1: |
497 | cmp ax, word [Screen_Max_X];ScreenLength |
494 | cmp ax, word [_display.width] |
498 | jl @@M2 |
495 | jl @@M2 |
499 | mov ax, word [Screen_Max_X];ScreenLength-1 |
496 | mov ax, word [_display.width] |
- | 497 | dec ax |
|
500 | ;-------------------------------------- |
498 | ;-------------------------------------- |
501 | align 4 |
499 | align 4 |
502 | @@M2: |
500 | @@M2: |
503 | mov [MOUSE_X], ax;[XCoordinate] |
501 | mov [MOUSE_X], ax;[XCoordinate] |
Line 512... | Line 510... | ||
512 | mov ax, 0 |
510 | mov ax, 0 |
513 | jmp @@M4 |
511 | jmp @@M4 |
514 | ;-------------------------------------- |
512 | ;-------------------------------------- |
515 | align 4 |
513 | align 4 |
516 | @@M3: |
514 | @@M3: |
517 | cmp ax, word [Screen_Max_Y];ScreenHeigth |
515 | cmp ax, word [_display.height] |
518 | jl @@M4 |
516 | jl @@M4 |
519 | mov ax, word [Screen_Max_Y];ScreenHeigth-1 |
517 | mov ax, word [_display.height] |
- | 518 | dec ax |
|
520 | ;-------------------------------------- |
519 | ;-------------------------------------- |
521 | align 4 |
520 | align 4 |
522 | @@M4: |
521 | @@M4: |
523 | mov [MOUSE_Y], ax;[YCoordinate] |
522 | mov [MOUSE_Y], ax;[YCoordinate] |