diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-23 22:30:49 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-23 22:30:49 -0400 |
commit | fad47ff74f6d03652951230eb1c394b896578c48 (patch) | |
tree | d23de1c4859b1a350fcecaea4a9173d10dfd9cc4 /src/SMAPI/Framework/Content | |
parent | 51368b8afb0c2064a70ed09f41570ca8fac5fdfa (diff) | |
download | SMAPI-fad47ff74f6d03652951230eb1c394b896578c48.tar.gz SMAPI-fad47ff74f6d03652951230eb1c394b896578c48.tar.bz2 SMAPI-fad47ff74f6d03652951230eb1c394b896578c48.zip |
fix image overlay bugs on Linux/Mac (#461)
Diffstat (limited to 'src/SMAPI/Framework/Content')
-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 c665484f..fc653bcf 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 != 0) // not transparent + if (pixel.A > 2) // not transparent (note: on Linux/Mac, fully transparent pixels may have an alpha up to 2 for some reason) newData[i] = pixel; } sourceData = newData; |