Fix bug in UnpremultiplyOnLoad.

This commit is contained in:
H. Utku Maden 2024-11-18 19:57:38 +03:00
parent 50c37e58fc
commit df61cdc5aa

@ -149,7 +149,7 @@ namespace ReFuel.Stb
/// According to the stb_image documentation, only iPhone PNG images /// According to the stb_image documentation, only iPhone PNG images
/// can come with premultiplied alpha. /// can come with premultiplied alpha.
/// </remarks> /// </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> /// <summary>
/// Force a filter on PNG filter when saving. /// Force a filter on PNG filter when saving.