Skip to content

Commit 4abd5f2

Browse files
authored
Fix: Fixed PNG-based .ico files rendering with black backgrounds (#17924)
1 parent 311a0d4 commit 4abd5f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/Helpers/Win32/Win32Helper.Storage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ private static bool IsAlphaBitmap(BitmapData bmpData)
488488
Color pixelColor = Color.FromArgb(
489489
Marshal.ReadInt32(bmpData.Scan0, (bmpData.Stride * y) + (4 * x)));
490490

491-
if (pixelColor.A > 0 & pixelColor.A < 255)
491+
if (pixelColor.A < 255)
492492
return true;
493493
}
494494
}

0 commit comments

Comments
 (0)