Subversion Repositories Kolibri OS

Rev

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

Rev 5189 Rev 5208
Line 534... Line 534...
534
		mov edx,[ebx+offs_zbup_x]
534
		mov edx,[ebx+offs_zbup_x]
535
		mov [x1],edx ;x1 = l1.x
535
		mov [x1],edx ;x1 = l1.x
536
		mov dword[error],0 ;error = 0
536
		mov dword[error],0 ;error = 0
537
		mov dword[derror],eax
537
		mov dword[derror],eax
538
		and dword[derror],0xffff ;derror = eax & 0x0000ffff
538
		and dword[derror],0xffff ;derror = eax & 0x0000ffff
539
		shr eax,16
539
		sar eax,16
540
		bt eax,15
-
 
541
		jnc @f
-
 
542
			or eax,0xffff0000
-
 
543
		@@:
-
 
544
		mov [dxdy_min],eax ;dxdy_min = eax >> 16
540
		mov [dxdy_min],eax ;dxdy_min = eax >> 16
545
		inc eax
541
		inc eax
546
		mov [dxdy_max],eax
542
		mov [dxdy_max],eax
Line 547... Line 543...
547
 
543
 
Line 684... Line 680...
684
if DRAW_LINE_M eq 1
680
if DRAW_LINE_M eq 1
685
		DRAW_LINE 1
681
		DRAW_LINE 1
686
else
682
else
687
		; generic draw line
683
		; generic draw line
688
		mov eax,[x2]
684
		mov eax,[x2]
689
		shr eax,16
685
		sar eax,16
690
		mov edi,[x1]
686
		mov edi,[x1]
691
		sub eax,edi
687
		sub eax,edi
692
		mov [n],eax ;n = (x2 >> 16) - x1
688
		mov [n],eax ;n = (x2 >> 16) - x1
693
		imul edi,PSZB
689
		imul edi,PSZB
694
		add edi,[pp1] ;pp = pp1 + x1 * PSZB
690
		add edi,[pp1] ;pp = pp1 + x1 * PSZB
Line 695... Line -...
695
 
-
 
696
if DEBUG ;[n], [x1], [x2]>>16
-
 
697
push ecx edi
-
 
698
	mov eax,[n]
-
 
699
	mov ecx,80
-
 
700
	lea edi,[buf_param]
-
 
701
	stdcall convert_int_to_str,ecx
-
 
702
	stdcall str_n_cat,edi,txt_zp_sp,2
-
 
703
	stdcall str_len,edi
-
 
704
	add edi,eax
-
 
705
	sub ecx,eax
-
 
706
 
-
 
707
	mov eax,[x1]
-
 
708
	stdcall convert_int_to_str,ecx
-
 
709
	stdcall str_n_cat,edi,txt_zp_sp,2
-
 
710
	stdcall str_len,edi
-
 
711
	add edi,eax
-
 
712
	sub ecx,eax
-
 
713
 
-
 
714
	mov eax,[x2]
-
 
715
	shr eax,16
-
 
716
	stdcall convert_int_to_str,ecx
-
 
717
 
-
 
718
	stdcall str_n_cat,edi,txt_nl,2
-
 
719
	stdcall dbg_print,f_fill_tr_nll,buf_param
-
 
720
pop edi ecx
-
 
721
end if
-
 
722
 
691
 
723
if INTERP_Z eq 1
692
if INTERP_Z eq 1
724
		mov eax,[x1]
693
		mov eax,[x1]
725
		shl eax,1
694
		shl eax,1
726
		add eax,[pz1]
695
		add eax,[pz1]