Screenshooter - fix for BMP saving.

git-svn-id: svn://kolibrios.org@3450 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2013-04-05 18:56:25 +00:00
parent 876d1656cd
commit 78568d91db

View File

@ -130,6 +130,7 @@ pusha
movzx edx,word [scr_buf.height] movzx edx,word [scr_buf.height]
movzx ebx,word [scr_buf.width] movzx ebx,word [scr_buf.width]
lea ebx,[ebx*3] lea ebx,[ebx*3]
mov ecx,ebx
test ebx,11b test ebx,11b
jz @f jz @f
@ -137,16 +138,19 @@ pusha
inc ebx inc ebx
shl ebx,2 shl ebx,2
@@: @@:
mov eax,ebx
sub eax,ecx
cld cld
align 4 align 4
.next_str: .next_str:
sub edi,ebx sub edi,ebx
mov ecx,ebx mov ecx,ebx
shr ecx,2 shr ecx,2
rep movsd rep movsd
sub edi,ebx sub edi,ebx
dec edx sub esi,eax
jnz .next_str dec edx
jnz .next_str
draw_status saving draw_status saving
mov eax,70 mov eax,70