From 70564594dcaf1868600328d0be676349061b6635 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 20 Jul 2019 22:55:47 -0400 Subject: [PATCH] Game version 1.31 renderScreenBuffer fix and added 1.31 reference. --- src/SMAPI/Framework/SGame.cs | 12 ++++++------ src/SMAPI/StardewModdingAPI.csproj | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 70377f34..c62f025a 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -1157,7 +1157,7 @@ namespace StardewModdingAPI.Framework if (this.IsSaving) { base.GraphicsDevice.Clear(bgColor.GetValue()); - this.renderScreenBuffer(BlendState.Opaque); + this.renderScreenBuffer(BlendState.Opaque, toBuffer); if (activeClickableMenu != null) { if (IsActiveClickableMenuNativeScaled) @@ -1267,7 +1267,7 @@ namespace StardewModdingAPI.Framework _spriteBatchEnd.Invoke(); this.drawOverlays(spriteBatch); - this.renderScreenBuffer(BlendState.AlphaBlend); + this.renderScreenBuffer(BlendState.AlphaBlend, toBuffer); if (overlayMenu != null) { SetSpriteBatchBeginNextID("D"); @@ -1327,7 +1327,7 @@ namespace StardewModdingAPI.Framework _spriteBatchEnd.Invoke(); } this.drawOverlays(spriteBatch); - this.renderScreenBuffer(BlendState.AlphaBlend); + this.renderScreenBuffer(BlendState.AlphaBlend, null); if (currentMinigame is FishingGame && activeClickableMenu != null) { SetSpriteBatchBeginNextID("A-A"); @@ -1364,7 +1364,7 @@ namespace StardewModdingAPI.Framework } else if (showingEndOfNightStuff) { - this.renderScreenBuffer(BlendState.Opaque); + this.renderScreenBuffer(BlendState.Opaque, null); BackupViewportAndZoom(divideByZoom: true); SetSpriteBatchBeginNextID("A-B"); SpriteBatchBegin.Invoke(NativeZoomLevel); @@ -1410,7 +1410,7 @@ namespace StardewModdingAPI.Framework #endif this.drawOverlays(spriteBatch); - this.renderScreenBuffer(BlendState.AlphaBlend); + this.renderScreenBuffer(BlendState.AlphaBlend, toBuffer); if (overlayMenu != null) { SetSpriteBatchBeginNextID("H"); @@ -2055,7 +2055,7 @@ label_168: #endif _spriteBatchEnd.Invoke(); this.drawOverlays(spriteBatch); - this.renderScreenBuffer(BlendState.Opaque); + this.renderScreenBuffer(BlendState.Opaque, toBuffer); if (_drawHUD.GetValue()) { DrawDayTimeMoneyBox.Invoke(); diff --git a/src/SMAPI/StardewModdingAPI.csproj b/src/SMAPI/StardewModdingAPI.csproj index 4ef2626e..56ab7230 100644 --- a/src/SMAPI/StardewModdingAPI.csproj +++ b/src/SMAPI/StardewModdingAPI.csproj @@ -87,7 +87,7 @@ - ..\..\..\..\..\Downloads\Stardew-Valley-v1-25_mod\unknown\assemblies\StardewValley.dll + ..\..\..\..\..\Downloads\com.chucklefish.stardewvalley_1.31\assemblies\StardewValley.dll