Skip to content

Commit

Permalink
Fix RecordMovie having a broken layout on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Apr 7, 2021
1 parent 9e60927 commit d32f734
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/BizHawk.Client.EmuHawk/movie/RecordMovie.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -37,6 +39,14 @@ public RecordMovie(
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())
{
Expand Down

0 comments on commit d32f734

Please sign in to comment.