diff options
author | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-28 22:14:57 -0400 |
---|---|---|
committer | Zoryn <Zoryn4163@users.noreply.github.com> | 2016-03-28 22:14:57 -0400 |
commit | a0e1695525f948c54ffb2d9bf91851c42218f0d6 (patch) | |
tree | 11294f6aa65d7b3ce61acccae6ce8fc97a78be32 /StardewModdingAPI/Inheritance/SGame.cs | |
parent | 26b914d61deb1c95aa306576cc8cd007593db80d (diff) | |
parent | 91c156678c0b694160f5461245968c9b4a0cd4f1 (diff) | |
download | SMAPI-a0e1695525f948c54ffb2d9bf91851c42218f0d6.tar.gz SMAPI-a0e1695525f948c54ffb2d9bf91851c42218f0d6.tar.bz2 SMAPI-a0e1695525f948c54ffb2d9bf91851c42218f0d6.zip |
Merge pull request #78 from Zoryn4163/master
fixes obsolete draw event invocations
Diffstat (limited to 'StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index c6c6b440..b306422a 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -1250,10 +1250,13 @@ namespace StardewModdingAPI.Inheritance {
farmEvent?.drawAboveEverything(spriteBatch);
}
- GraphicsEvents.InvokeDrawTick();
- GraphicsEvents.InvokeDrawInRenderTargetTick();
+
GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty);
spriteBatch.End();
+
+ GraphicsEvents.InvokeDrawTick();
+ GraphicsEvents.InvokeDrawInRenderTargetTick();
+
if (!ZoomLevelIsOne)
{
GraphicsDevice.SetRenderTarget(null);
|