summaryrefslogtreecommitdiff
path: root/StardewModdingAPI
diff options
context:
space:
mode:
authorZoryn <Zoryn4163@users.noreply.github.com>2016-03-31 20:03:16 -0400
committerZoryn <Zoryn4163@users.noreply.github.com>2016-03-31 20:03:16 -0400
commitb565ce31e66b41145320619d913303e5bd404961 (patch)
tree49a4eff6f880dc9cb7f80e15235f86033c7403a7 /StardewModdingAPI
parente67288113caa6c08996812981f42582b5db51005 (diff)
parent7930d532d52a0158c5e315942c2cfce60cc4026c (diff)
downloadSMAPI-b565ce31e66b41145320619d913303e5bd404961.tar.gz
SMAPI-b565ce31e66b41145320619d913303e5bd404961.tar.bz2
SMAPI-b565ce31e66b41145320619d913303e5bd404961.zip
Merge pull request #81 from speeder/master
Correct fix for https://github.com/ClxS/SMAPI/issues/74
Diffstat (limited to 'StardewModdingAPI')
-rw-r--r--StardewModdingAPI/Inheritance/SGame.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs
index ccd3846c..5cdc92c6 100644
--- a/StardewModdingAPI/Inheritance/SGame.cs
+++ b/StardewModdingAPI/Inheritance/SGame.cs
@@ -1312,10 +1312,7 @@ namespace StardewModdingAPI.Inheritance
GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty);
spriteBatch.End();
-
- GraphicsEvents.InvokeDrawTick();
- GraphicsEvents.InvokeDrawInRenderTargetTick();
-
+
if (!ZoomLevelIsOne)
{
GraphicsDevice.SetRenderTarget(null);
@@ -1324,6 +1321,9 @@ namespace StardewModdingAPI.Inheritance
spriteBatch.Draw(Screen, Vector2.Zero, Screen.Bounds, Color.White, 0f, Vector2.Zero, options.zoomLevel, SpriteEffects.None, 1f);
spriteBatch.End();
}
+
+ GraphicsEvents.InvokeDrawTick();
+ GraphicsEvents.InvokeDrawInRenderTargetTick();
}
catch (Exception ex)
{