From 5940f3283e7b06acae1873963d583f0d43487f94 Mon Sep 17 00:00:00 2001
From: Jesse Plamondon-Willard <github@jplamondonw.com>
Date: Tue, 9 Oct 2018 22:10:42 -0400
Subject: fix compile error on Linux/Mac

---
 src/SMAPI/Framework/Content/AssetDataForImage.cs | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'src/SMAPI')

diff --git a/src/SMAPI/Framework/Content/AssetDataForImage.cs b/src/SMAPI/Framework/Content/AssetDataForImage.cs
index a8ec79a8..f970762a 100644
--- a/src/SMAPI/Framework/Content/AssetDataForImage.cs
+++ b/src/SMAPI/Framework/Content/AssetDataForImage.cs
@@ -86,12 +86,14 @@ namespace StardewModdingAPI.Framework.Content
                     // This performs a conventional alpha blend for the pixels, which are already
                     // premultiplied by the content pipeline. The formula is derived from
                     // https://blogs.msdn.microsoft.com/shawnhar/2009/11/06/premultiplied-alpha/.
+                    // Note: don't use named arguments here since they're different between
+                    // Linux/Mac and Windows.
                     float alphaBelow = 1 - (above.A / 255f);
                     newData[i] = new Color(
-                        r: (int)(above.R + (below.R * alphaBelow)),
-                        g: (int)(above.G + (below.G * alphaBelow)),
-                        b: (int)(above.B + (below.B * alphaBelow)),
-                        a: Math.Max(above.A, below.A)
+                        (int)(above.R + (below.R * alphaBelow)), // r
+                        (int)(above.G + (below.G * alphaBelow)), // g
+                        (int)(above.B + (below.B * alphaBelow)), // b
+                        Math.Max(above.A, below.A) // a
                     );
                 }
                 sourceData = newData;
-- 
cgit