diff --git a/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/IControlRenderer.cs b/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/IControlRenderer.cs index b5a481cd2c..9a5475cd9e 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/IControlRenderer.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/ControlRenderer/IControlRenderer.cs @@ -26,7 +26,6 @@ namespace BizHawk.Client.EmuHawk.CustomControls /// void DrawString(string str, Point point); - void DrawRectangle(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect); void FillRectangle(int x, int y, int w, int h); diff --git a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs index 7488101d84..b614d1bf17 100644 --- a/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs +++ b/BizHawk.Client.EmuHawk/CustomControls/InputRoll/InputRoll.cs @@ -90,10 +90,7 @@ namespace BizHawk.Client.EmuHawk using (var g = CreateGraphics()) using (_renderer.LockGraphics(g, Width, Height)) - { - // Set font - _renderer.PrepDrawString(_font, _foreColor); - + { // Measure width change to ignore extra padding at start/end var size1 = _renderer.MeasureString("A", _font); var size2 = _renderer.MeasureString("AA", _font); diff --git a/BizHawk.Client.EmuHawk/EmuHawkUtil.cs b/BizHawk.Client.EmuHawk/EmuHawkUtil.cs index 3bd9ea51b3..ca0879fd32 100644 --- a/BizHawk.Client.EmuHawk/EmuHawkUtil.cs +++ b/BizHawk.Client.EmuHawk/EmuHawkUtil.cs @@ -14,8 +14,8 @@ namespace BizHawk.Client.EmuHawk { static bool PromptToSwitchCore(string currentCore, string recommendedCore, Action disableCurrentCore) { - var box = new MsgBox( - $"While the {currentCore} core is faster, it is not nearly as accurate as {recommendedCore}.{Environment.NewLine}It is recommended that you switch to the {recommendedCore} core for movie recording. {Environment.NewLine}Switch to {recommendedCore}?", + using var box = new MsgBox( + $"While the {currentCore} core is faster, it is not nearly as accurate as {recommendedCore}.{Environment.NewLine}It is recommended that you switch to the {recommendedCore} core for movie recording.{Environment.NewLine}Switch to {recommendedCore}?", "Accuracy Warning", MessageBoxIcon.Warning); @@ -27,7 +27,6 @@ namespace BizHawk.Client.EmuHawk box.SetMessageToAutoSize(); var result = box.ShowDialog(); - box.Dispose(); if (result != DialogResult.Yes) {