forked from KolibriOS/kolibrios
1) 'vox_editor' update
2) 'buf2d.obj' add new function 'buf2d_rotate' git-svn-id: svn://kolibrios.org@2975 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1071,6 +1071,249 @@ proc buf_resize, buf_struc:dword, new_w:dword, new_h:dword
|
||||
ret
|
||||
endp
|
||||
|
||||
align 4
|
||||
rot_table: ;⠡<><E2A0A1><EFBFBD><EFBFBD> <20><><EFBFBD> 㪠<><E3AAA0><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>㭪樨 <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
||||
dd buf_rotate.8b90,buf_rotate.24b90,buf_rotate.32b90,\
|
||||
buf_rotate.8b180,buf_rotate.24b180,buf_rotate.32b180
|
||||
|
||||
;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ࠦ<EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20><> 90 <20><><EFBFBD> 180 <20>ࠤ<EFBFBD>ᮢ
|
||||
align 4
|
||||
proc buf_rotate, buf_struc:dword, angle:dword
|
||||
locals
|
||||
n_data dd ?
|
||||
dec_h dd ? ;<3B><> <20><><EFBFBD><EFBFBD>, <20><><EFBFBD> 㬥<><E3ACA5>襭<EFBFBD><E8A5AD> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> y
|
||||
endl
|
||||
pushad
|
||||
mov edi,[buf_struc]
|
||||
mov ebx,buf2d_w
|
||||
mov ecx,buf2d_h
|
||||
|
||||
lea eax,[rot_table]
|
||||
cmp dword[angle],90 ;<3B><EFBFBD>ઠ 㣫<> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
je .beg_0
|
||||
cmp dword[angle],180
|
||||
jne @f
|
||||
add eax,12
|
||||
jmp .beg_0
|
||||
@@:
|
||||
jmp .end_f
|
||||
.beg_0: ;<3B><EFBFBD>ઠ <20><>⭮<EFBFBD><E2ADAE><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
cmp buf2d_bits,8
|
||||
jne @f
|
||||
jmp dword[eax]
|
||||
@@:
|
||||
cmp buf2d_bits,24
|
||||
jne @f
|
||||
add eax,4
|
||||
jmp dword[eax]
|
||||
@@:
|
||||
cmp buf2d_bits,32
|
||||
jne @f
|
||||
add eax,8
|
||||
jmp dword[eax]
|
||||
@@:
|
||||
jmp .end_f
|
||||
|
||||
.8b90: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 90 <20>ࠤ<EFBFBD>ᮢ
|
||||
mov edx,ecx ;edx - buf_h
|
||||
imul ecx,ebx
|
||||
invoke mem.alloc,ecx ;<3B>뤥<EFBFBD>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
cmp eax,0
|
||||
je .end_f
|
||||
mov [n_data],eax
|
||||
mov [dec_h],ecx
|
||||
inc dword[dec_h]
|
||||
|
||||
;copy buf --> mem
|
||||
mov edi,[buf_struc]
|
||||
mov esi,buf2d_data
|
||||
mov edi,eax ;[n_data]
|
||||
dec edx ;<3B><>४<EFBFBD><E0A5AA><EFBFBD>㥬 edx <20><> 1 <20><><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 ᤢ<><E1A4A2><EFBFBD> <20> movsb
|
||||
add edi,edx
|
||||
xor eax,eax
|
||||
cld
|
||||
.cycle_0:
|
||||
movsb
|
||||
add edi,edx
|
||||
inc eax
|
||||
cmp eax,ebx
|
||||
jl @f
|
||||
xor eax,eax
|
||||
sub edi,[dec_h]
|
||||
@@:
|
||||
loop .cycle_0
|
||||
|
||||
;change buf_w <---> buf_h
|
||||
mov esi,[n_data]
|
||||
mov edi,[buf_struc]
|
||||
mov edi,buf2d_data
|
||||
mov ecx,ebx
|
||||
inc edx ;<3B><><EFBFBD>ࠢ<EFBFBD>塞 ४<E1AAAE><E0A5AA><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD> edx
|
||||
imul ecx,edx
|
||||
;copy buf <-- mem
|
||||
;cld
|
||||
rep movsb
|
||||
invoke mem.free,[n_data]
|
||||
jmp .change_w_h
|
||||
.24b90: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 24 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 90 <20>ࠤ<EFBFBD>ᮢ
|
||||
mov esi,ecx
|
||||
imul esi,ebx
|
||||
lea ecx,[ecx+ecx*2]
|
||||
mov edx,ecx ;edx - buf_h * 3
|
||||
imul ecx,ebx
|
||||
invoke mem.alloc,ecx ;<3B>뤥<EFBFBD>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
cmp eax,0
|
||||
je .end_f
|
||||
mov [n_data],eax
|
||||
mov [dec_h],ecx
|
||||
add dword[dec_h],3
|
||||
|
||||
;copy buf --> mem
|
||||
|
||||
mov edi,[buf_struc]
|
||||
mov ecx,esi
|
||||
mov esi,buf2d_data
|
||||
mov edi,eax ;[n_data]
|
||||
sub edx,3 ;<3B><>४<EFBFBD><E0A5AA><EFBFBD>㥬 edx <20><> 3 <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 ᤢ<><E1A4A2><EFBFBD>
|
||||
add edi,edx
|
||||
xor eax,eax
|
||||
cld
|
||||
.cycle_1:
|
||||
movsw
|
||||
movsb
|
||||
add edi,edx
|
||||
inc eax
|
||||
cmp eax,ebx
|
||||
jl @f
|
||||
xor eax,eax
|
||||
sub edi,[dec_h]
|
||||
@@:
|
||||
loop .cycle_1
|
||||
|
||||
;copy buf <-- mem
|
||||
mov esi,[n_data]
|
||||
mov edi,[buf_struc]
|
||||
mov edi,buf2d_data
|
||||
mov ecx,ebx
|
||||
add edx,3 ;<3B><><EFBFBD>ࠢ<EFBFBD>塞 ४<E1AAAE><E0A5AA><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD> edx
|
||||
imul ecx,edx
|
||||
;cld
|
||||
rep movsb
|
||||
invoke mem.free,[n_data]
|
||||
jmp .change_w_h
|
||||
.32b90: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 32 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 90 <20>ࠤ<EFBFBD>ᮢ
|
||||
shl ecx,2
|
||||
mov edx,ecx ;edx - buf_h * 4
|
||||
imul ecx,ebx
|
||||
invoke mem.alloc,ecx ;<3B>뤥<EFBFBD>塞 <20>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
cmp eax,0
|
||||
je .end_f
|
||||
mov [n_data],eax
|
||||
mov [dec_h],ecx
|
||||
add dword[dec_h],4
|
||||
|
||||
;copy buf --> mem
|
||||
mov edi,[buf_struc]
|
||||
shr ecx,2
|
||||
mov esi,buf2d_data
|
||||
mov edi,eax ;[n_data]
|
||||
sub edx,4 ;<3B><>४<EFBFBD><E0A5AA><EFBFBD>㥬 edx <20><> 4 <20><><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>樨 ᤢ<><E1A4A2><EFBFBD> <20> movsd
|
||||
add edi,edx
|
||||
xor eax,eax
|
||||
cld
|
||||
.cycle_2:
|
||||
movsd
|
||||
add edi,edx
|
||||
inc eax
|
||||
cmp eax,ebx
|
||||
jl @f
|
||||
xor eax,eax
|
||||
sub edi,[dec_h]
|
||||
@@:
|
||||
loop .cycle_2
|
||||
|
||||
;copy buf <-- mem
|
||||
mov esi,[n_data]
|
||||
mov edi,[buf_struc]
|
||||
mov edi,buf2d_data
|
||||
mov ecx,ebx
|
||||
add edx,4 ;<3B><><EFBFBD>ࠢ<EFBFBD>塞 ४<E1AAAE><E0A5AA><EFBFBD><E0AEA2><EFBFBD><EFBFBD><EFBFBD> edx
|
||||
imul ecx,edx
|
||||
shr ecx,2
|
||||
;cld
|
||||
rep movsd
|
||||
invoke mem.free,[n_data]
|
||||
;jmp .change_w_h
|
||||
.change_w_h: ;change buf_w <---> buf_h
|
||||
mov edi,[buf_struc]
|
||||
mov eax,buf2d_w
|
||||
mov ebx,buf2d_h
|
||||
mov buf2d_h,eax
|
||||
mov buf2d_w,ebx
|
||||
jmp .end_f
|
||||
.8b180: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 8 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 180 <20>ࠤ<EFBFBD>ᮢ
|
||||
mov edi,buf2d_data
|
||||
mov esi,edi
|
||||
imul ecx,ebx
|
||||
add esi,ecx
|
||||
dec esi
|
||||
shr ecx,1 ;ecx - <20><> <20><><EFBFBD>ᥫ<EFBFBD><E1A5AB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : 2
|
||||
std
|
||||
@@:
|
||||
lodsb
|
||||
mov ah,byte[edi]
|
||||
mov byte[esi+1],ah
|
||||
mov byte[edi],al
|
||||
inc edi
|
||||
loop @b
|
||||
jmp .end_f
|
||||
.24b180: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 24 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 180 <20>ࠤ<EFBFBD>ᮢ
|
||||
mov esi,buf2d_data
|
||||
mov edi,esi
|
||||
imul ecx,ebx
|
||||
mov eax,ecx
|
||||
lea ecx,[ecx+ecx*2]
|
||||
add edi,ecx
|
||||
sub edi,3
|
||||
shr eax,1
|
||||
mov ecx,eax ;ecx - <20><> <20><><EFBFBD>ᥫ<EFBFBD><E1A5AB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : 2
|
||||
cld
|
||||
@@:
|
||||
lodsw
|
||||
mov edx,eax
|
||||
lodsb
|
||||
mov bx,word[edi]
|
||||
mov word[esi-3],bx
|
||||
mov bl,byte[edi+2]
|
||||
mov byte[esi-1],bl
|
||||
mov byte[edi+2],al
|
||||
mov word[edi],dx
|
||||
sub edi,3
|
||||
loop @b
|
||||
jmp .end_f
|
||||
.32b180: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 32 <20><>⭮<EFBFBD><E2ADAE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> 180 <20>ࠤ<EFBFBD>ᮢ
|
||||
mov edi,buf2d_data
|
||||
mov esi,edi
|
||||
imul ecx,ebx
|
||||
shl ecx,2
|
||||
add esi,ecx
|
||||
sub esi,4
|
||||
shr ecx,3 ;ecx - <20><> <20><><EFBFBD>ᥫ<EFBFBD><E1A5AB> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : 2
|
||||
std
|
||||
@@:
|
||||
lodsd
|
||||
mov ebx,dword[edi]
|
||||
mov dword[esi+4],ebx
|
||||
mov dword[edi],eax
|
||||
add edi,4
|
||||
loop @b
|
||||
;jmp .end_f
|
||||
|
||||
.end_f:
|
||||
popad
|
||||
ret
|
||||
endp
|
||||
|
||||
align 4
|
||||
proc buf_line_brs, buf_struc:dword, coord_x0:dword, coord_y0:dword, coord_x1:dword, coord_y1:dword, color:dword
|
||||
locals
|
||||
@@ -3238,30 +3481,52 @@ proc vox_create_next_brush uses eax ebx ecx edx edi, buf_v1:dword, buf_v2:dword,
|
||||
;ecx - <20><>ਭ<EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> : 2
|
||||
;ebx - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> (<28><><EFBFBD> <20>᭮<EFBFBD><E1ADAE><EFBFBD><EFBFBD><EFBFBD>)
|
||||
;edx - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>᭮<EFBFBD><E1ADAE><EFBFBD><EFBFBD><EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD>
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,0,0
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,0
|
||||
|
||||
mov eax,[h]
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,eax,eax
|
||||
push eax ;stdcall ...
|
||||
add eax,ebx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,eax ;,...
|
||||
sub eax,ebx
|
||||
cmp eax,0
|
||||
je @f
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,0,0
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,0
|
||||
|
||||
shl ecx,1
|
||||
;ecx - <20><>ਭ<EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD>
|
||||
mov eax,[h]
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,eax,eax
|
||||
push eax ;stdcall ...,[h]
|
||||
add eax,ebx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,eax;,[h]
|
||||
;sub eax,ebx
|
||||
shr ecx,1
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,eax,eax
|
||||
push eax ;stdcall ...
|
||||
add eax,ebx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,eax ;,...
|
||||
sub eax,ebx
|
||||
shl ecx,1
|
||||
|
||||
;ecx - <20><>ਭ<EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD>
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,eax,eax
|
||||
push eax ;stdcall ...,[h]
|
||||
add eax,ebx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,eax;,[h]
|
||||
;sub eax,ebx
|
||||
shr ecx,1
|
||||
|
||||
;ecx - <20><>ਭ<EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> : 2
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,edx,edx
|
||||
add ebx,edx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,edx
|
||||
|
||||
jmp .end_0
|
||||
@@:
|
||||
;<3B> h = 0, ⮣<><E2AEA3> <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> 2 <20>࠭<EFBFBD>
|
||||
;<3B> ⠪<><E2A0AA> <20><><EFBFBD>砥 <20><><EFBFBD> <20><><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD> <20><>㡨<EFBFBD><E3A1A8> <20><>६ <20><>ਭ<EFBFBD> / 2
|
||||
mov eax,ecx
|
||||
;2 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD>
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,0,eax
|
||||
stdcall vox_add, [buf_v2], [buf_v1], 0,ebx,eax
|
||||
shl eax,1
|
||||
;2 業<>ࠫ<EFBFBD><E0A0AB><EFBFBD><EFBFBD> <20><>।<EFBFBD><E0A5A4><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 業<>ࠫ<EFBFBD><E0A0AB><EFBFBD><EFBFBD> <20><> <20>뢮<EFBFBD><EBA2AE><EFBFBD>)
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,0,eax
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,eax
|
||||
shr eax,1
|
||||
shl ecx,1
|
||||
;2 <20>ࠢ<EFBFBD><E0A0A2> <20><><EFBFBD>ᥫ<EFBFBD>
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,0,eax
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,eax
|
||||
|
||||
.end_0:
|
||||
|
||||
;ecx - <20><>ਭ<EFBFBD> <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> : 2
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,edx,edx
|
||||
add ebx,edx
|
||||
stdcall vox_add, [buf_v2], [buf_v1], ecx,ebx,edx
|
||||
|
||||
ret
|
||||
endp
|
||||
@@ -3666,14 +3931,23 @@ proc vox_go_in_node, buf_i:dword, buf_z:dword, h_br:dword, v_obj:dword
|
||||
;mov eax,(h-h_osn/2)
|
||||
mov ebx,[h_br]
|
||||
movzx eax,byte[ebx+1]
|
||||
movzx ebx,byte[ebx+2]
|
||||
shr ebx,1
|
||||
sub eax,ebx
|
||||
cmp byte[ebx+2],0
|
||||
je @f
|
||||
;<3B> <20><><EFBFBD><EFBFBD><EFBFBD> <20> 3-<2D><> <20>࠭ﬨ
|
||||
movzx ebx,byte[ebx+2]
|
||||
shr ebx,1
|
||||
sub eax,ebx
|
||||
jmp .end_0
|
||||
@@:
|
||||
;<3B> <20><><EFBFBD><EFBFBD><EFBFBD> <20> 2-<2D><> <20>࠭ﬨ
|
||||
movzx ebx,byte[ebx]
|
||||
shr ebx,1
|
||||
.end_0:
|
||||
cmp ecx,1
|
||||
jl .end_c1
|
||||
jl @f
|
||||
shl eax,cl
|
||||
shl ebx,cl
|
||||
.end_c1:
|
||||
@@:
|
||||
add esi,ebx
|
||||
pop ebx
|
||||
add edx,eax ;<3B><>४<EFBFBD><E0A5AA><EFBFBD><E0AEA2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>ᥫ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><E0AEA2>
|
||||
@@ -3823,22 +4097,32 @@ endl
|
||||
pop ecx ebx
|
||||
|
||||
cmp ecx,1
|
||||
jl .no_scale ;<3B><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>横<EFBFBD><E6A8AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
jl @f ;<3B><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>横<EFBFBD><E6A8AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
shl eax,cl
|
||||
shl dword[osn_w_2],cl
|
||||
shl dword[vox_h],cl
|
||||
.no_scale:
|
||||
@@:
|
||||
|
||||
; add esi,eax ;<3B><><EFBFBD>塞 <20><>㡨<EFBFBD><E3A1A8> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> z (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> y)
|
||||
bt word[edi],0 ;test voxel coord x
|
||||
jnc @f
|
||||
add ebx,[osn_w_2]
|
||||
cmp eax,0
|
||||
jne .end_0
|
||||
add esi,[osn_w_2] ;<3B><><EFBFBD>塞 <20><>㡨<EFBFBD><E3A1A8> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> z
|
||||
jmp @f
|
||||
.end_0:
|
||||
add edx,eax
|
||||
add esi,eax ;<3B><><EFBFBD>塞 <20><>㡨<EFBFBD><E3A1A8> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> z
|
||||
@@:
|
||||
bt word[edi],1 ;test voxel coord y
|
||||
jnc @f
|
||||
add ebx,[osn_w_2]
|
||||
cmp eax,0
|
||||
jne .end_1
|
||||
sub esi,[osn_w_2] ;<3B><><EFBFBD>塞 <20><>㡨<EFBFBD><E3A1A8> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> z
|
||||
jmp @f
|
||||
.end_1:
|
||||
sub edx,eax
|
||||
sub esi,eax ;<3B><><EFBFBD>塞 <20><>㡨<EFBFBD><E3A1A8> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> z
|
||||
@@:
|
||||
@@ -4456,6 +4740,7 @@ EXPORTS:
|
||||
dd sz_buf2d_draw, buf_draw_buf
|
||||
dd sz_buf2d_delete, buf_delete
|
||||
dd sz_buf2d_resize, buf_resize
|
||||
dd sz_buf2d_rotate, buf_rotate
|
||||
dd sz_buf2d_line, buf_line_brs
|
||||
dd sz_buf2d_line_sm, buf_line_brs_sm
|
||||
dd sz_buf2d_rect_by_size, buf_rect_by_size
|
||||
@@ -4494,6 +4779,7 @@ EXPORTS:
|
||||
sz_buf2d_draw db 'buf2d_draw',0
|
||||
sz_buf2d_delete db 'buf2d_delete',0
|
||||
sz_buf2d_resize db 'buf2d_resize',0
|
||||
sz_buf2d_rotate db 'buf2d_rotate',0
|
||||
sz_buf2d_line db 'buf2d_line',0 ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
||||
sz_buf2d_line_sm db 'buf2d_line_sm',0 ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> ᣫ<><E1A3AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
||||
sz_buf2d_rect_by_size db 'buf2d_rect_by_size',0 ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> ࠬ<><E0A0AC> <20><>אַ㣮<EFACAE>쭨<EFBFBD><ECADA8>, 2-<2D> <20><><EFBFBD>न<EFBFBD><E0A4A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> ࠧ<><E0A0A7><EFBFBD><EFBFBD>
|
||||
|
Reference in New Issue
Block a user