From 78568d91dbe2ef3d91fca822e9ff84291f63dbbe Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 5 Apr 2013 18:56:25 +0000 Subject: [PATCH] Screenshooter - fix for BMP saving. git-svn-id: svn://kolibrios.org@3450 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/scrshoot/scrsavef.inc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/programs/media/scrshoot/scrsavef.inc b/programs/media/scrshoot/scrsavef.inc index 67b48303eb..b0db93f397 100644 --- a/programs/media/scrshoot/scrsavef.inc +++ b/programs/media/scrshoot/scrsavef.inc @@ -130,6 +130,7 @@ pusha movzx edx,word [scr_buf.height] movzx ebx,word [scr_buf.width] lea ebx,[ebx*3] + mov ecx,ebx test ebx,11b jz @f @@ -137,16 +138,19 @@ pusha inc ebx shl ebx,2 @@: + mov eax,ebx + sub eax,ecx cld align 4 .next_str: - sub edi,ebx - mov ecx,ebx - shr ecx,2 - rep movsd - sub edi,ebx - dec edx - jnz .next_str + sub edi,ebx + mov ecx,ebx + shr ecx,2 + rep movsd + sub edi,ebx + sub esi,eax + dec edx + jnz .next_str draw_status saving mov eax,70