From eb01893ff68f7059e95d89e121c5b571172d2f37 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Sun, 13 Dec 2020 21:26:28 +0000 Subject: [PATCH] libimg: fix transparency in indexed png images. git-svn-id: svn://kolibrios.org@8399 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/libs-dev/libimg/png/png.asm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/libs-dev/libimg/png/png.asm b/programs/develop/libraries/libs-dev/libimg/png/png.asm index 3f04d5c6d..f609cb8a1 100644 --- a/programs/develop/libraries/libs-dev/libimg/png/png.asm +++ b/programs/develop/libraries/libs-dev/libimg/png/png.asm @@ -280,7 +280,8 @@ end virtual lodsd dec esi bswap eax - shr eax, 8 + mov al, 0xff + ror eax, 8 stosd jmp @b @@: @@ -1142,4 +1143,4 @@ endl xor eax,eax .quit: ret -endp \ No newline at end of file +endp