From d8fd58b4f5b11068f0258c7e7f10f4ad4bfcede8 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Sun, 9 Oct 2011 10:14:44 +0000 Subject: [PATCH] libimg: icon related bug fixed (reported by Leency) git-svn-id: svn://kolibrios.org@2284 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm b/programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm index 6f483aa076..760e2c886c 100644 --- a/programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm +++ b/programs/develop/libraries/libs-dev/libimg/ico_cur/ico_cur.asm @@ -321,6 +321,7 @@ img.decode.ico._.decode_icon_mask: pop eax push eax mov ecx, [eax + Image.Width] + mov edi, [eax + Image.Data] .bpp24: mov edx, [esp+16] ; get background color .bpp24.extloop: @@ -337,7 +338,7 @@ img.decode.ico._.decode_icon_mask: mov [edi+2], dl ror edx, 16 @@: - add edi, 4 + add edi, 3 dec ecx jz @f dec dword [esp]