Subversion Repositories Kolibri OS

Rev

Rev 5201 | Rev 5596 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5201 Rev 5565
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-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: 5201 $
8
$Revision: 5565 $
9
 
9
 
10
 
10
 
Line 113... Line 113...
113
;        mov     ecx, [Screen_Max_X]
113
;        mov     ecx, [Screen_Max_X]
114
;        inc     ecx
114
;        inc     ecx
115
;        mul     ecx
115
;        mul     ecx
116
        mov     eax, [d_width_calc_area + eax*4]
116
        mov     eax, [d_width_calc_area + eax*4]
Line 117... Line 117...
117
 
117
 
118
        add     eax, [_WinMapAddress]
118
        add     eax, [_display.win_map]
119
        movzx   edx, byte [ebx+eax]
119
        movzx   edx, byte [ebx+eax]
120
        shl     edx, 8
120
        shl     edx, 8
Line 121... Line 121...
121
        mov     esi, [edx+SLOT_BASE+APPDATA.cursor]
121
        mov     esi, [edx+SLOT_BASE+APPDATA.cursor]
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