Subversion Repositories Kolibri OS

Rev

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

Rev 4457 Rev 4587
Line 240... Line 240...
240
;        shr     ebx, 3
240
;        shr     ebx, 3
241
        imul    eax, ebx
241
        imul    eax, ebx
242
        add     edx, eax
242
        add     edx, eax
243
; pointer to pixel map
243
; pointer to pixel map
244
        mov     eax, [putimg.abs_cy]
244
        mov     eax, [putimg.abs_cy]
245
;        imul    eax, [Screen_Max_X]
-
 
246
;        add     eax, [putimg.abs_cy]
-
 
247
        mov     eax, [d_width_calc_area + eax*4]
245
        mov     eax, [d_width_calc_area + eax*4]
Line 248... Line 246...
248
 
246
 
249
        add     eax, [putimg.abs_cx]
247
        add     eax, [putimg.abs_cx]
250
        add     eax, [_WinMapAddress]
248
        add     eax, [_WinMapAddress]
Line 686... Line 684...
686
; ecx = ?? RR GG BB    ; 0x01000000 negation
684
; ecx = ?? RR GG BB    ; 0x01000000 negation
687
                       ; 0x02000000 used for draw_rectangle without top line
685
                       ; 0x02000000 used for draw_rectangle without top line
688
                       ;            for example drawwindow_III and drawwindow_IV
686
                       ;            for example drawwindow_III and drawwindow_IV
689
; edi = 0x00000001 force
687
; edi = 0x00000001 force
Line 690... Line -...
690
 
-
 
691
;;;        mov  [novesachecksum], dword 0
688
 
692
        pushad
689
        pushad
693
        cmp     [Screen_Max_X], eax
690
        cmp     [Screen_Max_X], eax
694
        jb      .exit
691
        jb      .exit
695
        cmp     [Screen_Max_Y], ebx
692
        cmp     [Screen_Max_Y], ebx
Line 880... Line 877...
880
        mov     [LFB_BASE+edi], eax
877
        mov     [LFB_BASE+edi], eax
881
        ret
878
        ret
882
;-----------------------------------------------------------------------------
879
;-----------------------------------------------------------------------------
883
align 4
880
align 4
884
calculate_edi:
881
calculate_edi:
885
;        mov     edi, ebx
-
 
886
;        imul    edi, [Screen_Max_X]
-
 
887
;        add     edi, ebx
-
 
888
        mov     edi, [d_width_calc_area + ebx*4]
882
        mov     edi, [d_width_calc_area + ebx*4]
889
        add     edi, eax
883
        add     edi, eax
890
        ret
884
        ret
891
;-----------------------------------------------------------------------------
885
;-----------------------------------------------------------------------------
892
; DRAWLINE
886
; DRAWLINE