summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoryn Aaron <zoryn4163@gmail.com>2016-03-27 19:18:49 -0400
committerZoryn Aaron <zoryn4163@gmail.com>2016-03-27 19:18:49 -0400
commitbcaa3fc7a435f462c0acbb1bcd55f061e4f5aa9c (patch)
tree5e136d0bab90110fcd40fef1cb8221db161fa9b3
parent1debeb8eff19f2b5e222579405413ae175fb361d (diff)
downloadSMAPI-bcaa3fc7a435f462c0acbb1bcd55f061e4f5aa9c.tar.gz
SMAPI-bcaa3fc7a435f462c0acbb1bcd55f061e4f5aa9c.tar.bz2
SMAPI-bcaa3fc7a435f462c0acbb1bcd55f061e4f5aa9c.zip
updates?
-rw-r--r--StardewModdingAPI/Events/Graphics.cs13
-rw-r--r--StardewModdingAPI/Inheritance/SGame.cs2
2 files changed, 6 insertions, 9 deletions
diff --git a/StardewModdingAPI/Events/Graphics.cs b/StardewModdingAPI/Events/Graphics.cs
index 79c5b4aa..4e533f92 100644
--- a/StardewModdingAPI/Events/Graphics.cs
+++ b/StardewModdingAPI/Events/Graphics.cs
@@ -12,8 +12,6 @@ namespace StardewModdingAPI.Events
/// </summary>
public static event EventHandler Resize = delegate { };
-
-
/// <summary>
/// Occurs before anything is drawn.
/// </summary>
@@ -87,7 +85,10 @@ namespace StardewModdingAPI.Events
OnPostRenderEvent.Invoke(sender, e);
}
-
+ internal static void InvokeResize(object sender, EventArgs e)
+ {
+ Resize.Invoke(sender, e);
+ }
#region To Remove
@@ -116,12 +117,6 @@ namespace StardewModdingAPI.Events
DrawInRenderTargetTick.Invoke(null, EventArgs.Empty);
}
- [Obsolete("Should not be used.")]
- public static void InvokeResize(object sender, EventArgs e)
- {
- Resize.Invoke(sender, e);
- }
-
#endregion
}
} \ No newline at end of file
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs
index d6263d73..65711507 100644
--- a/StardewModdingAPI/Inheritance/SGame.cs
+++ b/StardewModdingAPI/Inheritance/SGame.cs
@@ -1245,6 +1245,8 @@ namespace StardewModdingAPI.Inheritance
{
farmEvent?.drawAboveEverything(spriteBatch);
}
+ GraphicsEvents.InvokeDrawTick();
+ GraphicsEvents.InvokeDrawInRenderTargetTick();
GraphicsEvents.InvokeOnPostRenderEvent(null, EventArgs.Empty);
spriteBatch.End();
if (!ZoomLevelIsOne)