From ef1f89857d06d5822e81138700f05a980e448fef Mon Sep 17 00:00:00 2001 From: Kalmix <87293493+kalmix@users.noreply.github.com> Date: Tue, 2 Dec 2025 18:41:01 -0400 Subject: [PATCH] Fix: PNG-based .ico files rendering with black background (#17923) --- src/Files.App/Helpers/Win32/Win32Helper.Storage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Files.App/Helpers/Win32/Win32Helper.Storage.cs b/src/Files.App/Helpers/Win32/Win32Helper.Storage.cs index 679986259857..76e8ddabe61f 100644 --- a/src/Files.App/Helpers/Win32/Win32Helper.Storage.cs +++ b/src/Files.App/Helpers/Win32/Win32Helper.Storage.cs @@ -488,7 +488,7 @@ private static bool IsAlphaBitmap(BitmapData bmpData) Color pixelColor = Color.FromArgb( Marshal.ReadInt32(bmpData.Scan0, (bmpData.Stride * y) + (4 * x))); - if (pixelColor.A > 0 & pixelColor.A < 255) + if (pixelColor.A < 255) return true; } }