diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-31 20:03:16 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-31 20:03:16 -0400 |
commit | b565ce31e66b41145320619d913303e5bd404961 (patch) | |
tree | 49a4eff6f880dc9cb7f80e15235f86033c7403a7 /StardewModdingAPI/Inheritance/SGame.cs | |
parent | e67288113caa6c08996812981f42582b5db51005 (diff) | |
parent | 7930d532d52a0158c5e315942c2cfce60cc4026c (diff) | |
download | SMAPI-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/Inheritance/SGame.cs')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 8 |
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)
{
|