summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-08 20:48:15 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-08 20:48:15 -0500
commitd100681be7ef1eafd8ec5e98984c41d7473ad3d0 (patch)
treeb30a0273406d44f570915ff68caa0ca4da76fe56
parentc6b40fb5911b54ace96167fe5fc1bce4fe3695bc (diff)
downloadSMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.tar.gz
SMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.tar.bz2
SMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.zip
update for draw changes in SDV 1.5.2
-rw-r--r--docs/release-notes.md5
-rw-r--r--src/SMAPI/Framework/SGame.cs9
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index ace1f61b..25d08095 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -9,12 +9,13 @@
## Upcoming release
* For players:
+ * Updated for Stardew Valley 1.5.2.
* Reduced memory usage.
* You can now enter console commands for a specific screen in split-screen mode by adding `screen=ID` to the command.
- * Typing `help` in the SMAPI console is now more friendly and helpful.
+ * Typing `help` in the SMAPI console is now more helpful.
* For modders:
- * Simplified tilesheet order warning added in 3.8.2.
+ * Simplified tilesheet order warning added in SMAPI 3.8.2.
* For the Console Commands mod:
* Removed experimental `performance` command. Unfortunately this impacted SMAPI's memory usage and the data was often misinterpreted. This may be replaced with more automatic performance alerts in a future version.
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs
index f69c5f08..2ede40ae 100644
--- a/src/SMAPI/Framework/SGame.cs
+++ b/src/SMAPI/Framework/SGame.cs
@@ -247,7 +247,7 @@ namespace StardewModdingAPI.Framework
}
if (target_screen != null)
{
- base.GraphicsDevice.SetRenderTarget(target_screen);
+ Game1.SetRenderTarget(target_screen);
}
if (this.IsSaving)
{
@@ -352,8 +352,7 @@ namespace StardewModdingAPI.Framework
events.Rendered.RaiseEmpty();
Game1.spriteBatch.End();
}
-
- base.GraphicsDevice.SetRenderTarget(target_screen);
+ Game1.SetRenderTarget(target_screen);
return;
}
if (Game1.showingEndOfNightStuff)
@@ -426,7 +425,7 @@ namespace StardewModdingAPI.Framework
}
if (Game1.drawLighting)
{
- base.GraphicsDevice.SetRenderTarget(Game1.lightmap);
+ Game1.SetRenderTarget(Game1.lightmap);
base.GraphicsDevice.Clear(Microsoft.Xna.Framework.Color.White * 0f);
Matrix lighting_matrix = Matrix.Identity;
if (this.useUnscaledLighting)
@@ -473,7 +472,7 @@ namespace StardewModdingAPI.Framework
}
}
Game1.spriteBatch.End();
- base.GraphicsDevice.SetRenderTarget(target_screen);
+ Game1.SetRenderTarget(target_screen);
}
if (Game1.bloomDay && Game1.bloom != null)
{