fix image overlay bugs on Linux/Mac (#461)
This commit is contained in:
parent
51368b8afb
commit
fad47ff74f
|
@ -16,8 +16,9 @@
|
|||
-->
|
||||
|
||||
## 2.5.4
|
||||
* For modders:
|
||||
* Added automatic texture update for trees when changed through the content API.
|
||||
* For players:
|
||||
* Fixed tree textures not updated when changed through the content API.
|
||||
* Fixed display bugs on Linux/Mac when mods overlay images through the content API.
|
||||
|
||||
* For the [log parser][]:
|
||||
* Fixed error when log text contains certain tokens.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue