summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-07-31 23:48:53 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-07-31 23:48:53 -0400
commit9b22f3e004b35f66d9be6af211f20fe126fae209 (patch)
tree2c352fb84a16cb9a754c25278dde02aa0354ae6f /src/StardewModdingAPI/Events
parent7992b52f035be5c6229ff0912bfd91084d41d5dc (diff)
downloadSMAPI-9b22f3e004b35f66d9be6af211f20fe126fae209.tar.gz
SMAPI-9b22f3e004b35f66d9be6af211f20fe126fae209.tar.bz2
SMAPI-9b22f3e004b35f66d9be6af211f20fe126fae209.zip
fix GraphicsEvents.Resize being raised before the game updates its window data (#328)
Diffstat (limited to 'src/StardewModdingAPI/Events')
-rw-r--r--src/StardewModdingAPI/Events/GraphicsEvents.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/Events/GraphicsEvents.cs b/src/StardewModdingAPI/Events/GraphicsEvents.cs
index 25b976f1..fff51bed 100644
--- a/src/StardewModdingAPI/Events/GraphicsEvents.cs
+++ b/src/StardewModdingAPI/Events/GraphicsEvents.cs
@@ -51,11 +51,9 @@ namespace StardewModdingAPI.Events
****/
/// <summary>Raise a <see cref="Resize"/> event.</summary>
/// <param name="monitor">Encapsulates monitoring and logging.</param>
- /// <param name="sender">The object which raised the event.</param>
- /// <param name="e">The event arguments.</param>
- internal static void InvokeResize(IMonitor monitor, object sender, EventArgs e)
+ internal static void InvokeResize(IMonitor monitor)
{
- monitor.SafelyRaisePlainEvent($"{nameof(GraphicsEvents)}.{nameof(GraphicsEvents.Resize)}", GraphicsEvents.Resize?.GetInvocationList(), sender, e);
+ monitor.SafelyRaisePlainEvent($"{nameof(GraphicsEvents)}.{nameof(GraphicsEvents.Resize)}", GraphicsEvents.Resize?.GetInvocationList());
}
/****