summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SGame.cs
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 /src/SMAPI/Framework/SGame.cs
parentc6b40fb5911b54ace96167fe5fc1bce4fe3695bc (diff)
downloadSMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.tar.gz
SMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.tar.bz2
SMAPI-d100681be7ef1eafd8ec5e98984c41d7473ad3d0.zip
update for draw changes in SDV 1.5.2
Diffstat (limited to 'src/SMAPI/Framework/SGame.cs')
-rw-r--r--src/SMAPI/Framework/SGame.cs9
1 files changed, 4 insertions, 5 deletions
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)
{