From 2175ec4953bb1de06bf74c0ecff3c355dc877e43 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Mon, 28 Mar 2016 22:13:52 -0400 Subject: fixes obsolete draw event invocations --- StardewModdingAPI/Inheritance/SGame.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'StardewModdingAPI') 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); -- cgit