tweak transparency threshold (#461)

This commit is contained in:
Jesse Plamondon-Willard 2018-03-24 19:06:13 -04:00
parent 5126d56b39
commit 34346d8b09
1 changed files with 1 additions and 1 deletions

View File

@ -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;