Fix bug in UnpremultiplyOnLoad.

This commit is contained in:
themixedupstuff committed 2024-11-18 19:57:38 +03:00
1 parent 50c37e58fc
commit df61cdc5aa
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ namespace ReFuel.Stb
/// According to the stb_image documentation, only iPhone PNG images
/// can come with premultiplied alpha.
/// </remarks>
public static bool UnpremultiplyOnLoad { set => Stbi.set_unpremultiply_on_load(1); }
public static bool UnpremultiplyOnLoad { set => Stbi.set_unpremultiply_on_load(value ? 1 : 0); }
/// <summary>
/// Force a filter on PNG filter when saving.