From efca5284b10823ac7ead7e446bfa7c0a688271cc Mon Sep 17 00:00:00 2001 From: Souryo Date: Sun, 11 Dec 2016 14:25:29 -0500 Subject: [PATCH] Mono/Linux: Fixed layout issues --- Core/stdafx.h | 4 ++ GUI.NET/Controls/BaseControl.cs | 38 +++++++++++++++++++ GUI.NET/Controls/ctrlHorizontalTrackbar.cs | 2 +- GUI.NET/Controls/ctrlLoadingRom.cs | 2 +- GUI.NET/Controls/ctrlNsfPlayer.cs | 2 +- GUI.NET/Controls/ctrlRenderer.cs | 2 +- GUI.NET/Controls/ctrlTrackbar.cs | 2 +- .../BaseScrollableTextboxUserControl.cs | 3 +- GUI.NET/Debugger/Controls/ctrlBreakpoints.cs | 3 +- GUI.NET/Debugger/Controls/ctrlCallstack.cs | 3 +- GUI.NET/Debugger/Controls/ctrlChrViewer.cs | 3 +- .../Debugger/Controls/ctrlConsoleStatus.cs | 3 +- GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs | 2 + GUI.NET/Debugger/Controls/ctrlFunctionList.cs | 3 +- GUI.NET/Debugger/Controls/ctrlLabelList.cs | 3 +- .../Controls/ctrlMemoryAccessCounters.cs | 3 +- .../Debugger/Controls/ctrlNametableViewer.cs | 3 +- .../Debugger/Controls/ctrlPaletteViewer.cs | 3 +- GUI.NET/Debugger/Controls/ctrlProfiler.cs | 3 +- .../Controls/ctrlScrollableTextbox.cs | 7 +++- GUI.NET/Debugger/Controls/ctrlSpriteViewer.cs | 3 +- GUI.NET/Debugger/Controls/ctrlWatch.cs | 3 +- GUI.NET/Debugger/frmCodeTooltip.cs | 3 +- GUI.NET/Forms/BaseForm.cs | 22 +++++++++++ GUI.NET/Forms/Cheats/ctrlCheatFinder.cs | 3 +- GUI.NET/Forms/Config/ctrlDipSwitch.cs | 3 +- GUI.NET/Forms/Config/ctrlEmulatorShortcuts.cs | 3 +- GUI.NET/Forms/Config/ctrlInputPortConfig.cs | 3 +- .../Forms/Config/ctrlStandardController.cs | 3 +- GUI.NET/Forms/frmUpdatePrompt.cs | 3 ++ 30 files changed, 117 insertions(+), 26 deletions(-) create mode 100644 GUI.NET/Controls/BaseControl.cs diff --git a/Core/stdafx.h b/Core/stdafx.h index 1445e124..4f90fc2a 100644 --- a/Core/stdafx.h +++ b/Core/stdafx.h @@ -19,6 +19,10 @@ #include "../Utilities/UTF8Util.h" +#ifdef __GNUC__ +#define __forceinline inline +#endif + using std::vector; using std::shared_ptr; using std::unique_ptr; diff --git a/GUI.NET/Controls/BaseControl.cs b/GUI.NET/Controls/BaseControl.cs new file mode 100644 index 00000000..39ac1b8a --- /dev/null +++ b/GUI.NET/Controls/BaseControl.cs @@ -0,0 +1,38 @@ +using System.Windows.Forms; +using System.Drawing; +using Mesen.GUI; + +namespace Mesen.GUI.Controls +{ + public class BaseControl : UserControl + { + public static string MonospaceFontFamily + { + get + { + if(Program.IsMono) { + return "Ubuntu Mono"; + } else { + return "Consolas"; + } + } + } + + public new SizeF AutoScaleDimensions + { + set { + } + } + + public new AutoScaleMode AutoScaleMode + { + set { + if(Program.IsMono) { + base.AutoScaleMode = AutoScaleMode.None; + } else { + base.AutoScaleMode = value; + } + } + } + } +} \ No newline at end of file diff --git a/GUI.NET/Controls/ctrlHorizontalTrackbar.cs b/GUI.NET/Controls/ctrlHorizontalTrackbar.cs index 723e188c..89475db5 100644 --- a/GUI.NET/Controls/ctrlHorizontalTrackbar.cs +++ b/GUI.NET/Controls/ctrlHorizontalTrackbar.cs @@ -10,7 +10,7 @@ using System.Windows.Forms; namespace Mesen.GUI.Controls { - public partial class ctrlHorizontalTrackbar : UserControl + public partial class ctrlHorizontalTrackbar : BaseControl { public event EventHandler ValueChanged { diff --git a/GUI.NET/Controls/ctrlLoadingRom.cs b/GUI.NET/Controls/ctrlLoadingRom.cs index 7efe3c25..4f1ee9fe 100644 --- a/GUI.NET/Controls/ctrlLoadingRom.cs +++ b/GUI.NET/Controls/ctrlLoadingRom.cs @@ -10,7 +10,7 @@ using System.Windows.Forms; namespace Mesen.GUI.Controls { - public partial class ctrlLoadingRom : UserControl + public partial class ctrlLoadingRom : BaseControl { public ctrlLoadingRom() { diff --git a/GUI.NET/Controls/ctrlNsfPlayer.cs b/GUI.NET/Controls/ctrlNsfPlayer.cs index c123fe3f..75dccf95 100644 --- a/GUI.NET/Controls/ctrlNsfPlayer.cs +++ b/GUI.NET/Controls/ctrlNsfPlayer.cs @@ -12,7 +12,7 @@ using Mesen.GUI.Config; namespace Mesen.GUI.Controls { - public partial class ctrlNsfPlayer : UserControl + public partial class ctrlNsfPlayer : BaseControl { private List _trackList = new List(); private int _frameCount = 0; diff --git a/GUI.NET/Controls/ctrlRenderer.cs b/GUI.NET/Controls/ctrlRenderer.cs index 5bc92749..250fffee 100644 --- a/GUI.NET/Controls/ctrlRenderer.cs +++ b/GUI.NET/Controls/ctrlRenderer.cs @@ -11,7 +11,7 @@ using Mesen.GUI.Config; namespace Mesen.GUI.Controls { - public partial class ctrlRenderer : UserControl + public partial class ctrlRenderer : BaseControl { private bool _cursorHidden = false; diff --git a/GUI.NET/Controls/ctrlTrackbar.cs b/GUI.NET/Controls/ctrlTrackbar.cs index 4c1a1fc0..13e59b2f 100644 --- a/GUI.NET/Controls/ctrlTrackbar.cs +++ b/GUI.NET/Controls/ctrlTrackbar.cs @@ -10,7 +10,7 @@ using System.Windows.Forms; namespace Mesen.GUI.Controls { - public partial class ctrlTrackbar : UserControl + public partial class ctrlTrackbar : BaseControl { public event EventHandler ValueChanged { diff --git a/GUI.NET/Debugger/Controls/BaseScrollableTextboxUserControl.cs b/GUI.NET/Debugger/Controls/BaseScrollableTextboxUserControl.cs index 9cf483b2..e40b7d62 100644 --- a/GUI.NET/Debugger/Controls/BaseScrollableTextboxUserControl.cs +++ b/GUI.NET/Debugger/Controls/BaseScrollableTextboxUserControl.cs @@ -6,10 +6,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public class BaseScrollableTextboxUserControl : UserControl + public class BaseScrollableTextboxUserControl : BaseControl { virtual protected ctrlScrollableTextbox ScrollableTextbox { diff --git a/GUI.NET/Debugger/Controls/ctrlBreakpoints.cs b/GUI.NET/Debugger/Controls/ctrlBreakpoints.cs index 558b4a1d..759b57f4 100644 --- a/GUI.NET/Debugger/Controls/ctrlBreakpoints.cs +++ b/GUI.NET/Debugger/Controls/ctrlBreakpoints.cs @@ -7,10 +7,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlBreakpoints : UserControl + public partial class ctrlBreakpoints : BaseControl { public event EventHandler BreakpointNavigation; diff --git a/GUI.NET/Debugger/Controls/ctrlCallstack.cs b/GUI.NET/Debugger/Controls/ctrlCallstack.cs index e7dfe0f6..7cc78aa5 100644 --- a/GUI.NET/Debugger/Controls/ctrlCallstack.cs +++ b/GUI.NET/Debugger/Controls/ctrlCallstack.cs @@ -7,10 +7,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlCallstack : UserControl + public partial class ctrlCallstack : BaseControl { private class StackInfo { diff --git a/GUI.NET/Debugger/Controls/ctrlChrViewer.cs b/GUI.NET/Debugger/Controls/ctrlChrViewer.cs index 7e887577..d37a18c3 100644 --- a/GUI.NET/Debugger/Controls/ctrlChrViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlChrViewer.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlChrViewer : UserControl + public partial class ctrlChrViewer : BaseControl { private byte[][] _chrPixelData = new byte[2][]; private int _selectedPalette = 0; diff --git a/GUI.NET/Debugger/Controls/ctrlConsoleStatus.cs b/GUI.NET/Debugger/Controls/ctrlConsoleStatus.cs index 08096902..1048207d 100644 --- a/GUI.NET/Debugger/Controls/ctrlConsoleStatus.cs +++ b/GUI.NET/Debugger/Controls/ctrlConsoleStatus.cs @@ -9,10 +9,11 @@ using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; using Mesen.GUI.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger { - public partial class ctrlConsoleStatus : UserControl + public partial class ctrlConsoleStatus : BaseControl { public event EventHandler OnStateChanged; public event EventHandler OnGotoLocation; diff --git a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs index 19ab2b5b..a9063e3c 100644 --- a/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs +++ b/GUI.NET/Debugger/Controls/ctrlDebuggerCode.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Debugger.Controls; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger { @@ -29,6 +30,7 @@ namespace Mesen.GUI.Debugger public ctrlDebuggerCode() { InitializeComponent(); + this.lstSearchResult.Font = new System.Drawing.Font(BaseControl.MonospaceFontFamily, 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); splitContainer.Panel2Collapsed = true; } diff --git a/GUI.NET/Debugger/Controls/ctrlFunctionList.cs b/GUI.NET/Debugger/Controls/ctrlFunctionList.cs index f1b1cd69..624f6cf1 100644 --- a/GUI.NET/Debugger/Controls/ctrlFunctionList.cs +++ b/GUI.NET/Debugger/Controls/ctrlFunctionList.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Collections; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlFunctionList : UserControl + public partial class ctrlFunctionList : BaseControl { public event EventHandler OnFindOccurrence; public event EventHandler OnFunctionSelected; diff --git a/GUI.NET/Debugger/Controls/ctrlLabelList.cs b/GUI.NET/Debugger/Controls/ctrlLabelList.cs index 70d451f6..c07cf84b 100644 --- a/GUI.NET/Debugger/Controls/ctrlLabelList.cs +++ b/GUI.NET/Debugger/Controls/ctrlLabelList.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Collections; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlLabelList : UserControl + public partial class ctrlLabelList : BaseControl { public event EventHandler OnFindOccurrence; public event EventHandler OnLabelSelected; diff --git a/GUI.NET/Debugger/Controls/ctrlMemoryAccessCounters.cs b/GUI.NET/Debugger/Controls/ctrlMemoryAccessCounters.cs index 5b160db8..0118eaf0 100644 --- a/GUI.NET/Debugger/Controls/ctrlMemoryAccessCounters.cs +++ b/GUI.NET/Debugger/Controls/ctrlMemoryAccessCounters.cs @@ -7,10 +7,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlMemoryAccessCounters : UserControl + public partial class ctrlMemoryAccessCounters : BaseControl { private MemoryCountData[] _data; private AddressType _memoryType = AddressType.InternalRam; diff --git a/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs b/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs index 7af1fbac..3c8e181f 100644 --- a/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlNametableViewer.cs @@ -9,10 +9,11 @@ using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlNametableViewer : UserControl + public partial class ctrlNametableViewer : BaseControl { private byte[][] _nametablePixelData = new byte[4][]; private byte[][] _tileData = new byte[4][]; diff --git a/GUI.NET/Debugger/Controls/ctrlPaletteViewer.cs b/GUI.NET/Debugger/Controls/ctrlPaletteViewer.cs index 60a5155e..ec7714bf 100644 --- a/GUI.NET/Debugger/Controls/ctrlPaletteViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlPaletteViewer.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlPaletteViewer : UserControl + public partial class ctrlPaletteViewer : BaseControl { private byte[] _paletteRam; private byte[] _palettePixelData; diff --git a/GUI.NET/Debugger/Controls/ctrlProfiler.cs b/GUI.NET/Debugger/Controls/ctrlProfiler.cs index 5fbf6a52..1d603a5d 100644 --- a/GUI.NET/Debugger/Controls/ctrlProfiler.cs +++ b/GUI.NET/Debugger/Controls/ctrlProfiler.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Collections; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlProfiler : UserControl + public partial class ctrlProfiler : BaseControl { public static event EventHandler OnFunctionSelected; private Int64[] _exclusiveTime; diff --git a/GUI.NET/Debugger/Controls/ctrlScrollableTextbox.cs b/GUI.NET/Debugger/Controls/ctrlScrollableTextbox.cs index 346dbe50..0223899d 100644 --- a/GUI.NET/Debugger/Controls/ctrlScrollableTextbox.cs +++ b/GUI.NET/Debugger/Controls/ctrlScrollableTextbox.cs @@ -7,10 +7,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger { - public partial class ctrlScrollableTextbox : UserControl + public partial class ctrlScrollableTextbox : BaseControl { public event EventHandler ScrollPositionChanged; @@ -52,6 +53,8 @@ namespace Mesen.GUI.Debugger this.ctrlTextbox.ShowLineNumbers = true; this.ctrlTextbox.ShowLineInHex = true; + this.ctrlTextbox.Font = new System.Drawing.Font(BaseControl.MonospaceFontFamily, 13F); + this.hScrollBar.ValueChanged += hScrollBar_ValueChanged; this.vScrollBar.ValueChanged += vScrollBar_ValueChanged; this.ctrlTextbox.ScrollPositionChanged += ctrlTextbox_ScrollPositionChanged; @@ -67,7 +70,7 @@ namespace Mesen.GUI.Debugger set { if(value >= 6 && value <= 20) { - this.ctrlTextbox.Font = new Font("Consolas", value); + this.ctrlTextbox.Font = new Font(BaseControl.MonospaceFontFamily, value); UpdateHorizontalScrollbar(); this.ctrlTextbox.Invalidate(); diff --git a/GUI.NET/Debugger/Controls/ctrlSpriteViewer.cs b/GUI.NET/Debugger/Controls/ctrlSpriteViewer.cs index ad42a8a1..37bc4b31 100644 --- a/GUI.NET/Debugger/Controls/ctrlSpriteViewer.cs +++ b/GUI.NET/Debugger/Controls/ctrlSpriteViewer.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Runtime.InteropServices; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger.Controls { - public partial class ctrlSpriteViewer : UserControl + public partial class ctrlSpriteViewer : BaseControl { private byte[] _spriteRam; private byte[] _spritePixelData; diff --git a/GUI.NET/Debugger/Controls/ctrlWatch.cs b/GUI.NET/Debugger/Controls/ctrlWatch.cs index 592a26b1..f74c853d 100644 --- a/GUI.NET/Debugger/Controls/ctrlWatch.cs +++ b/GUI.NET/Debugger/Controls/ctrlWatch.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger { - public partial class ctrlWatch : UserControl + public partial class ctrlWatch : BaseControl { public ctrlWatch() { diff --git a/GUI.NET/Debugger/frmCodeTooltip.cs b/GUI.NET/Debugger/frmCodeTooltip.cs index 82c9ce39..f60e66de 100644 --- a/GUI.NET/Debugger/frmCodeTooltip.cs +++ b/GUI.NET/Debugger/frmCodeTooltip.cs @@ -7,6 +7,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Debugger { @@ -42,7 +43,7 @@ namespace Mesen.GUI.Debugger tlpMain.Controls.Add(lbl); lbl = new Label(); - lbl.Font = new Font("Consolas", 10); + lbl.Font = new Font(BaseControl.MonospaceFontFamily, 10); lbl.Margin = new Padding(2); lbl.AutoSize = true; lbl.Text = kvp.Value; diff --git a/GUI.NET/Forms/BaseForm.cs b/GUI.NET/Forms/BaseForm.cs index ad75ec32..dfe9bba8 100644 --- a/GUI.NET/Forms/BaseForm.cs +++ b/GUI.NET/Forms/BaseForm.cs @@ -123,6 +123,28 @@ namespace Mesen.GUI.Forms } } + public new SizeF AutoScaleDimensions + { + set + { + if(!Program.IsMono) { + base.AutoScaleDimensions = value; + } + } + } + + public new AutoScaleMode AutoScaleMode + { + set + { + if(Program.IsMono) { + base.AutoScaleMode = AutoScaleMode.None; + } else { + base.AutoScaleMode = value; + } + } + } + private void InitializeComponent() { this.components = new System.ComponentModel.Container(); diff --git a/GUI.NET/Forms/Cheats/ctrlCheatFinder.cs b/GUI.NET/Forms/Cheats/ctrlCheatFinder.cs index 228ded04..55bb58b9 100644 --- a/GUI.NET/Forms/Cheats/ctrlCheatFinder.cs +++ b/GUI.NET/Forms/Cheats/ctrlCheatFinder.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms.Cheats { - public partial class ctrlCheatFinder : UserControl + public partial class ctrlCheatFinder : BaseControl { public event EventHandler OnAddCheat; public bool TabIsFocused diff --git a/GUI.NET/Forms/Config/ctrlDipSwitch.cs b/GUI.NET/Forms/Config/ctrlDipSwitch.cs index 5f45080b..d421bce6 100644 --- a/GUI.NET/Forms/Config/ctrlDipSwitch.cs +++ b/GUI.NET/Forms/Config/ctrlDipSwitch.cs @@ -7,10 +7,11 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms.Config { - public partial class ctrlDipSwitch : UserControl + public partial class ctrlDipSwitch : BaseControl { public ctrlDipSwitch() { diff --git a/GUI.NET/Forms/Config/ctrlEmulatorShortcuts.cs b/GUI.NET/Forms/Config/ctrlEmulatorShortcuts.cs index db3984c8..9aca3f9c 100644 --- a/GUI.NET/Forms/Config/ctrlEmulatorShortcuts.cs +++ b/GUI.NET/Forms/Config/ctrlEmulatorShortcuts.cs @@ -3,10 +3,11 @@ using System.ComponentModel; using System.Windows.Forms; using Mesen.GUI.Config; using System.Reflection; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms.Config { - public partial class ctrlEmulatorShortcuts : UserControl + public partial class ctrlEmulatorShortcuts : BaseControl { public ctrlEmulatorShortcuts() { diff --git a/GUI.NET/Forms/Config/ctrlInputPortConfig.cs b/GUI.NET/Forms/Config/ctrlInputPortConfig.cs index 63a1c480..a75da0cc 100644 --- a/GUI.NET/Forms/Config/ctrlInputPortConfig.cs +++ b/GUI.NET/Forms/Config/ctrlInputPortConfig.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms.Config { - public partial class ctrlInputPortConfig : UserControl + public partial class ctrlInputPortConfig : BaseControl { private ControllerInfo _controllerInfo; diff --git a/GUI.NET/Forms/Config/ctrlStandardController.cs b/GUI.NET/Forms/Config/ctrlStandardController.cs index 30695716..8d5ddb45 100644 --- a/GUI.NET/Forms/Config/ctrlStandardController.cs +++ b/GUI.NET/Forms/Config/ctrlStandardController.cs @@ -8,10 +8,11 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms.Config { - public partial class ctrlStandardController : UserControl + public partial class ctrlStandardController : BaseControl { public event EventHandler OnChange; diff --git a/GUI.NET/Forms/frmUpdatePrompt.cs b/GUI.NET/Forms/frmUpdatePrompt.cs index 413cc6f4..956017de 100644 --- a/GUI.NET/Forms/frmUpdatePrompt.cs +++ b/GUI.NET/Forms/frmUpdatePrompt.cs @@ -11,6 +11,7 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Mesen.GUI.Config; +using Mesen.GUI.Controls; namespace Mesen.GUI.Forms { @@ -22,6 +23,8 @@ namespace Mesen.GUI.Forms { InitializeComponent(); + this.txtChangelog.Font = new System.Drawing.Font(BaseControl.MonospaceFontFamily, 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + _fileHash = fileHash; lblCurrentVersionString.Text = currentVersion.ToString();