From 5754736e2907844df81f5cc7334af62f585a92d7 Mon Sep 17 00:00:00 2001 From: Zoryn Aaron Date: Tue, 29 Mar 2016 06:28:11 -0400 Subject: [PATCH] cleanup a little. left some commented code for reference though. --- StardewModdingAPI/Inheritance/SGame.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index c7ad1436..1389ef22 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -460,11 +460,13 @@ namespace StardewModdingAPI.Inheritance QueueDebugMessage("FPS: " + FramesPerSecond); UpdateEventCalls(); + /* if (ZoomLevelIsOne) { options.zoomLevel = 0.99f; InvokeBasePrivateInstancedMethod("Window_ClientSizeChanged", null, null); } + */ if (FramePressedKeys.Contains(Keys.F3)) { @@ -1160,17 +1162,6 @@ namespace StardewModdingAPI.Inheritance //base.Draw(gameTime); - /*try - { - BaseBaseDraw bbd = (BaseBaseDraw) Delegate.CreateDelegate(typeof (BaseBaseDraw), Program.gamePtr, "Draw"); - bbd.GetType().BaseType.BaseType.GetField("_target", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(bbd, this); - bbd(); - } - catch(Exception ex) - { - Log.Error(ex); - }*/ - spriteBatch.Begin(SpriteSortMode.FrontToBack, BlendState.AlphaBlend, SamplerState.PointClamp, null, null); if (eventUp && currentLocation.currentEvent != null) {