forked from KolibriOS/kolibrios
buf2d.obj:
- new function 'buf2d_resize' info3ds: - update resize window - update function 'block_analiz_data' git-svn-id: svn://kolibrios.org@2136 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -911,10 +911,37 @@ endp
|
||||
|
||||
align 4
|
||||
proc buf_delete, buf_struc:dword
|
||||
push edi
|
||||
push eax edi
|
||||
mov edi,dword[buf_struc]
|
||||
invoke mem.free,buf2d_data
|
||||
pop edi
|
||||
pop edi eax
|
||||
ret
|
||||
endp
|
||||
|
||||
align 4
|
||||
proc buf_resize, buf_struc:dword, new_w:dword, new_h:dword
|
||||
pushad
|
||||
mov edi,dword[buf_struc]
|
||||
cmp buf2d_bits,24
|
||||
jne .24bit
|
||||
mov eax,dword[new_w]
|
||||
cmp eax,1
|
||||
jl @f
|
||||
mov buf2d_w,eax
|
||||
@@:
|
||||
mov ecx,buf2d_w
|
||||
mov eax,dword[new_h]
|
||||
cmp eax,1
|
||||
jl @f
|
||||
mov buf2d_h,eax
|
||||
@@:
|
||||
mov ebx,buf2d_h
|
||||
imul ecx,ebx
|
||||
lea ecx,[ecx+ecx*2] ; 24 bit = 3
|
||||
invoke mem.realloc,buf2d_data,ecx ;<3B><><EFBFBD><EFBFBD><EFBFBD>塞 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
mov buf2d_data,eax ;<3B><> <20><><EFBFBD>砩 <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<><E3AAA0>⥫<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
.24bit:
|
||||
popad
|
||||
ret
|
||||
endp
|
||||
|
||||
@@ -2310,6 +2337,7 @@ EXPORTS:
|
||||
dd sz_buf2d_clear, buf_clear
|
||||
dd sz_buf2d_draw, buf_draw_buf
|
||||
dd sz_buf2d_delete, buf_delete
|
||||
dd sz_buf2d_resize, buf_resize
|
||||
dd sz_buf2d_line, buf_line_brs
|
||||
dd sz_buf2d_rect_by_size, buf_rect_by_size
|
||||
dd sz_buf2d_filled_rect_by_size, buf_filled_rect_by_size
|
||||
@@ -2335,6 +2363,7 @@ EXPORTS:
|
||||
sz_buf2d_clear db 'buf2d_clear',0 ;<3B><><EFBFBD><EFBFBD>⪠ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㪠<><E3AAA0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 梥⮬
|
||||
sz_buf2d_draw db 'buf2d_draw',0
|
||||
sz_buf2d_delete db 'buf2d_delete',0
|
||||
sz_buf2d_resize db 'buf2d_resize',0
|
||||
sz_buf2d_line db 'buf2d_line',0 ;<3B><>ᮢ<EFBFBD><E1AEA2><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>
|
||||
sz_buf2d_filled_rect_by_size db 'buf2d_filled_rect_by_size',0 ;<3B><>ᮢ<EFBFBD><E1AEA2><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮣<EFBFBD> <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