Fix RecordMovie having a broken layout on Linux

This commit is contained in:
YoshiRulz 2021-04-08 09:24:12 +10:00
parent 9e609271b9
commit d32f7344ae
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 10 additions and 0 deletions

View File

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