Subversion Repositories Kolibri OS

Rev

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 654... Line 654...
654
        mov     eax, [BPSLine_calc_area+eax*4]
654
        mov     eax, [BPSLine_calc_area+eax*4]
655
        lea     edx, [LFB_BASE+ecx*3]
655
        lea     edx, [LFB_BASE+ecx*3]
656
        add     edx, eax
656
        add     edx, eax
657
        mov     [cur_saved_base], edx
657
        mov     [cur_saved_base], edx
Line 658... Line 658...
658
 
658
 
659
        cmp     ebx, [Screen_Max_X]
659
        cmp     ebx, [_display.width]
660
        jbe     @F
660
        jb      @F
661
        mov     ebx, [Screen_Max_X]
661
        mov     ebx, [_display.width]
662
;--------------------------------------
662
;--------------------------------------
663
align 4
663
align 4
664
@@:
664
@@:
665
        cmp     edi, [Screen_Max_Y]
665
        cmp     edi, [_display.height]
666
        jbe     @F
666
        jb      @F
667
        mov     edi, [Screen_Max_Y]
667
        mov     edi, [_display.height]
668
;--------------------------------------
668
;--------------------------------------
669
align 4
669
align 4
670
@@:
-
 
671
        mov     [cur.right], ebx
-
 
Line 672... Line 670...
672
        mov     [cur.bottom], edi
670
@@:
673
 
671
 
674
        sub     ebx, [x]
-
 
675
        sub     edi, [y]
-
 
676
        inc     ebx
672
        sub     ebx, [x]
677
        inc     edi
673
        sub     edi, [y]
Line 678... Line 674...
678
        sub     ebx, [_dx]
674
        sub     ebx, [_dx]
679
        sub     edi, [_dy]
675
        sub     edi, [_dy]
Line 772... Line 768...
772
;        mul     dword [BytesPerScanLine]
768
;        mul     dword [BytesPerScanLine]
773
        mov     eax, [BPSLine_calc_area+eax*4]
769
        mov     eax, [BPSLine_calc_area+eax*4]
774
        lea     edx, [LFB_BASE+eax+ecx*4]
770
        lea     edx, [LFB_BASE+eax+ecx*4]
775
        mov     [cur_saved_base], edx
771
        mov     [cur_saved_base], edx
Line 776... Line 772...
776
 
772
 
777
        cmp     ebx, [Screen_Max_X]
773
        cmp     ebx, [_display.width]
778
        jbe     @F
774
        jb      @F
779
        mov     ebx, [Screen_Max_X]
775
        mov     ebx, [_display.width]
780
;--------------------------------------
776
;--------------------------------------
781
align 4
777
align 4
782
@@:
778
@@:
783
        cmp     edi, [Screen_Max_Y]
779
        cmp     edi, [_display.height]
784
        jbe     @F
780
        jb      @F
785
        mov     edi, [Screen_Max_Y]
781
        mov     edi, [_display.height]
786
;--------------------------------------
782
;--------------------------------------
787
align 4
783
align 4
788
@@:
-
 
789
        mov     [cur.right], ebx
-
 
790
        mov     [cur.bottom], edi
-
 
791
 
784
@@:
792
        sub     ebx, [x]
785
        sub     ebx, [x]
793
        sub     edi, [y]
-
 
794
        inc     ebx
-
 
795
        inc     edi
786
        sub     edi, [y]
796
        sub     ebx, [_dx]
787
        sub     ebx, [_dx]
Line 797... Line 788...
797
        sub     edi, [_dy]
788
        sub     edi, [_dy]
798
 
789
 
Line 887... Line 878...
887
;        mul     dword [BytesPerScanLine]
878
;        mul     dword [BytesPerScanLine]
888
        mov     eax, [BPSLine_calc_area+eax*4]
879
        mov     eax, [BPSLine_calc_area+eax*4]
889
        lea     edx, [LFB_BASE+eax+ecx*2]
880
        lea     edx, [LFB_BASE+eax+ecx*2]
890
        mov     [cur_saved_base], edx
881
        mov     [cur_saved_base], edx
Line 891... Line 882...
891
 
882
 
892
        cmp     ebx, [Screen_Max_X]
883
        cmp     ebx, [_display.width]
893
        jbe     @F
884
        jb      @F
894
        mov     ebx, [Screen_Max_X]
885
        mov     ebx, [_display.width]
895
;--------------------------------------
886
;--------------------------------------
896
align 4
887
align 4
897
@@:
888
@@:
898
        cmp     edi, [Screen_Max_Y]
889
        cmp     edi, [_display.height]
899
        jbe     @F
890
        jb      @F
900
        mov     edi, [Screen_Max_Y]
891
        mov     edi, [_display.height]
901
;--------------------------------------
892
;--------------------------------------
902
align 4
893
align 4
903
@@:
-
 
904
        mov     [cur.right], ebx
-
 
905
        mov     [cur.bottom], edi
-
 
906
 
894
@@:
907
        sub     ebx, [x]
895
        sub     ebx, [x]
908
        sub     edi, [y]
-
 
909
        inc     ebx
-
 
910
        inc     edi
896
        sub     edi, [y]
911
        sub     ebx, [_dx]
897
        sub     ebx, [_dx]
Line 912... Line 898...
912
        sub     edi, [_dy]
898
        sub     edi, [_dy]
913
 
899