fix create empty image buffer

git-svn-id: svn://kolibrios.org@6211 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
IgorA
2016-02-13 00:08:46 +00:00
parent c28f9414e8
commit 4a01275caa
3 changed files with 23 additions and 74 deletions

View File

@@ -95,10 +95,10 @@ proc buf_create_f_img, buf_struc:dword, rgb_data:dword
mov edi,dword[buf_struc]
mov ecx,buf2d_w
cmp ecx,1
jl .end_create
jl .error
mov ebx,buf2d_h
cmp ebx,1
jl .end_create
jl .error
imul ecx,ebx
cmp buf2d_bits,24
jne @f
@@ -115,6 +115,8 @@ proc buf_create_f_img, buf_struc:dword, rgb_data:dword
jne @f
cld
mov esi,[rgb_data]
or esi,esi
jz @f
mov edi,eax ;eax=buf2d_data
rep movsb ;<3B><><EFBFBD><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E0A0A6><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>
jmp .end_create