This commit is contained in:
J.D. Purcell 2019-10-27 14:00:02 -04:00
parent 3e64051c7d
commit 9471f7ca03
3 changed files with 3 additions and 8 deletions

View File

@ -26,7 +26,6 @@ namespace BizHawk.Client.EmuHawk.CustomControls
/// </summary>
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);

View File

@ -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);

View File

@ -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)
{