summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-28 22:13:52 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-28 22:13:52 -0400
commit2175ec4953bb1de06bf74c0ecff3c355dc877e43 (patch)
treed8af78e3e17250f50b3f67aafb3b1f11cbc42e7a
parent44967669961e6b9dc6e028caa806abf466c2cbf3 (diff)
downloadSMAPI-2175ec4953bb1de06bf74c0ecff3c355dc877e43.tar.gz
SMAPI-2175ec4953bb1de06bf74c0ecff3c355dc877e43.tar.bz2
SMAPI-2175ec4953bb1de06bf74c0ecff3c355dc877e43.zip
fixes obsolete draw event invocations
-rw-r--r--StardewModdingAPI/Inheritance/SGame.cs7
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);