diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-24 19:06:13 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-24 19:06:13 -0400 |
commit | 34346d8b0911ec949832c037bfd83d4ab706d37a (patch) | |
tree | fb608281d05d2e3bf4dca8fde7c46839e675a198 /src/SMAPI/Framework/Content/AssetDataForImage.cs | |
parent | 5126d56b3992acd3193aaae35f178bb5e9da1cae (diff) | |
download | SMAPI-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.cs | 2 |
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; |