tweak transparency threshold (#461)
This commit is contained in:
parent
5126d56b39
commit
34346d8b09
|
@ -58,7 +58,7 @@ namespace StardewModdingAPI.Framework.Content
|
||||||
for (int i = 0; i < sourceData.Length; i++)
|
for (int i = 0; i < sourceData.Length; i++)
|
||||||
{
|
{
|
||||||
Color pixel = sourceData[i];
|
Color pixel = sourceData[i];
|
||||||
if (pixel.A > 2) // not transparent (note: on Linux/Mac, fully transparent pixels may have an alpha up to 2 for some reason)
|
if (pixel.A > 4) // not transparent (note: on Linux/Mac, fully transparent pixels may have an alpha up to 4 for some reason)
|
||||||
newData[i] = pixel;
|
newData[i] = pixel;
|
||||||
}
|
}
|
||||||
sourceData = newData;
|
sourceData = newData;
|
||||||
|
|
Loading…
Reference in New Issue