forked from KolibriOS/kolibrios
Screenshooter - fix for BMP saving.
git-svn-id: svn://kolibrios.org@3450 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
876d1656cd
commit
78568d91db
@ -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,6 +138,8 @@ 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:
|
||||||
@ -145,6 +148,7 @@ align 4
|
|||||||
shr ecx,2
|
shr ecx,2
|
||||||
rep movsd
|
rep movsd
|
||||||
sub edi,ebx
|
sub edi,ebx
|
||||||
|
sub esi,eax
|
||||||
dec edx
|
dec edx
|
||||||
jnz .next_str
|
jnz .next_str
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user