Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9929 → Rev 9930

/kernel/trunk/video/vesa20.inc
2013,9 → 2013,9
 
pushad
; External loop for all y from start to end
mov ebx, [draw_data + sizeof.WDATA + RECT.top] ; y start
mov ebx, [background_window + WDATA.draw_data.top] ; y start
dp2:
mov ebp, [draw_data + sizeof.WDATA + RECT.left] ; x start
mov ebp, [background_window + WDATA.draw_data.left] ; x start
; 1) Calculate pointers in WinMapAddress (does pixel belong to OS thread?) [ebp]
; and LFB data (output for our function) [edi]
; mov eax, [BytesPerScanLine]
2113,7 → 2113,7
 
add ebp, edx
add eax, edx
cmp eax, [draw_data + sizeof.WDATA + RECT.right]
cmp eax, [background_window + WDATA.draw_data.right]
ja dp4
sub ecx, edx
jnz dp3
2128,7 → 2128,7
dp4:
; next scan line
inc ebx
cmp ebx, [draw_data + sizeof.WDATA + RECT.bottom]
cmp ebx, [background_window + WDATA.draw_data.bottom]
jbe dp2
popad
mov [EGA_counter], 1
2166,8 → 2166,8
push eax ; low
 
; External loop for all y from start to end
mov ebx, [draw_data + sizeof.WDATA + RECT.top] ; y start
mov ebp, [draw_data + sizeof.WDATA + RECT.left] ; x start
mov ebx, [background_window + WDATA.draw_data.top] ; y start
mov ebp, [background_window + WDATA.draw_data.left] ; x start
; 1) Calculate pointers in WinMapAddress (does pixel belong to OS thread?) [ebp]
; and LFB data (output for our function) [edi]
; mov eax, [BytesPerScanLine]
2309,7 → 2309,7
add eax, 1
mov [esp+20], eax
add esi, 4
cmp eax, [draw_data + sizeof.WDATA + RECT.right]
cmp eax, [background_window + WDATA.draw_data.right]
jbe sdp3a
 
sdp4:
2317,11 → 2317,11
mov ebx, [esp+24]
add ebx, 1
mov [esp+24], ebx
cmp ebx, [draw_data + sizeof.WDATA + RECT.bottom]
cmp ebx, [background_window + WDATA.draw_data.bottom]
ja sdpdone
 
; advance edi, ebp to next scan line
sub eax, [draw_data + sizeof.WDATA + RECT.left]
sub eax, [background_window + WDATA.draw_data.left]
sub ebp, eax
add ebp, [_display.width]
sub edi, eax
2346,7 → 2346,7
lea eax, [eax*3]
imul eax, [BgrDataWidth]
sub [esp], eax
mov eax, [draw_data + sizeof.WDATA + RECT.left]
mov eax, [background_window + WDATA.draw_data.left]
mov [esp+20], eax
test ebx, ebx
jz sdp3
2386,7 → 2386,7
mov eax, [esp+20+8]
add eax, 1
mov [esp+20+8], eax
cmp eax, [draw_data + sizeof.WDATA + RECT.right]
cmp eax, [background_window + WDATA.draw_data.right]
ja @f
add ecx, [esp+36+8]
mov eax, edx
2396,7 → 2396,7
sub esi, eax
jmp smooth_line
@@:
mov eax, [draw_data + sizeof.WDATA + RECT.left]
mov eax, [background_window + WDATA.draw_data.left]
mov [esp+20+8], eax
ret