summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/AssetDataForImage.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-24 19:06:13 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-24 19:06:13 -0400
commit34346d8b0911ec949832c037bfd83d4ab706d37a (patch)
treefb608281d05d2e3bf4dca8fde7c46839e675a198 /src/SMAPI/Framework/Content/AssetDataForImage.cs
parent5126d56b3992acd3193aaae35f178bb5e9da1cae (diff)
downloadSMAPI-34346d8b0911ec949832c037bfd83d4ab706d37a.tar.gz
SMAPI-34346d8b0911ec949832c037bfd83d4ab706d37a.tar.bz2
SMAPI-34346d8b0911ec949832c037bfd83d4ab706d37a.zip
tweak transparency threshold (#461)
Diffstat (limited to 'src/SMAPI/Framework/Content/AssetDataForImage.cs')
-rw-r--r--src/SMAPI/Framework/Content/AssetDataForImage.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs
index fc653bcf..1eef2afb 100644
--- a/src/SMAPI/Framework/Content/AssetDataForImage.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs
@@ -58,7 +58,7 @@ namespace StardewModdingAPI.Framework.Content
for (int i = 0; i < sourceData.Length; 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;
}
sourceData = newData;