From d32f7344ae52248defb3c94a5524c183047a35ee Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Thu, 8 Apr 2021 09:24:12 +1000 Subject: [PATCH] Fix RecordMovie having a broken layout on Linux --- src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs b/src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs index 44e057074a..3db2c35df2 100644 --- a/src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs +++ b/src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs @@ -1,10 +1,12 @@ using System; +using System.Drawing; using System.IO; using System.Windows.Forms; using System.Linq; using BizHawk.Emulation.Common; using BizHawk.Client.Common; +using BizHawk.Common; namespace BizHawk.Client.EmuHawk { @@ -37,6 +39,14 @@ namespace BizHawk.Client.EmuHawk InitializeComponent(); Icon = Properties.Resources.TAStudioIcon; BrowseBtn.Image = Properties.Resources.OpenFile; + if (OSTailoredCode.IsUnixHost) Load += (_, _) => + { + //HACK to make this usable on Linux. No clue why this Form in particular is so much worse, maybe the GroupBox? --yoshi + DefaultAuthorCheckBox.Location += new Size(0, 20); + var s = new Size(0, 36); + OK.Location += s; + Cancel.Location += s; + }; if (!_emulator.HasSavestates()) {