Subversion Repositories Kolibri OS

Rev

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

Rev 5363 Rev 6593
Line 15... Line 15...
15
;;                                                              ;;
15
;;                                                              ;;
16
;;  See file COPYING for details                                ;;
16
;;  See file COPYING for details                                ;;
17
;;                                                              ;;
17
;;                                                              ;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
18
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 19... Line 19...
19
 
19
 
Line 20... Line 20...
20
$Revision: 5363 $
20
$Revision: 6593 $
21
 
21
 
22
uglobal
22
uglobal
23
align 4
23
align 4
Line 2145... Line 2145...
2145
; Helper variables
2145
; Helper variables
2146
; calculate 2^32*(BgrDataWidth-1) mod (ScreenWidth-1)
2146
; calculate 2^32*(BgrDataWidth-1) mod (ScreenWidth-1)
2147
        mov     eax, [BgrDataWidth]
2147
        mov     eax, [BgrDataWidth]
2148
        dec     eax
2148
        dec     eax
2149
        xor     edx, edx
2149
        xor     edx, edx
2150
        div     dword [screen_workarea.right]
2150
        div     dword [_display.width]
2151
        push    eax     ; high
2151
        push    eax     ; high
2152
        xor     eax, eax
2152
        xor     eax, eax
2153
        div     dword [screen_workarea.right]
2153
        div     dword [_display.width]
2154
        push    eax     ; low
2154
        push    eax     ; low
Line 2155... Line 2155...
2155
 
2155
 
2156
; the same for height
2156
; the same for height
2157
        mov     eax, [BgrDataHeight]
2157
        mov     eax, [BgrDataHeight]
2158
        dec     eax
2158
        dec     eax
2159
        xor     edx, edx
2159
        xor     edx, edx
2160
        div     dword [screen_workarea.bottom]
2160
        div     dword [_display.height]
2161
        push    eax     ; high
2161
        push    eax     ; high
2162
        xor     eax, eax
2162
        xor     eax, eax
2163
        div     dword [screen_workarea.bottom]
2163
        div     dword [_display.height]
Line 2164... Line 2164...
2164
        push    eax     ; low
2164
        push    eax     ; low
2165
 
2165
 
2166
; External loop for all y from start to end
2166
; External loop for all y from start to end