Remove WinForms dependency from BizHawk.Client.Common (used in ApiHawk)
This was committed to master as 4d4496af0
, but I can't be bothered rebasing this
branch right now.
This commit is contained in:
parent
56bba49c3b
commit
f4001f9313
|
@ -1,7 +1,6 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace BizHawk.Client.Common
|
||||
{
|
||||
|
@ -19,7 +18,7 @@ namespace BizHawk.Client.Common
|
|||
|
||||
bool HasGUISurface { get; }
|
||||
|
||||
Padding Padding { get; set; }
|
||||
(int Left, int Top, int Right, int Bottom) Padding { get; set; }
|
||||
|
||||
void AddMessage(string message);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<!--<Reference Include="System.Drawing" />-->
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<!--<Reference Include="System.Windows.Forms" />-->
|
||||
<!--<Reference Include="System.Xml" />-->
|
||||
<!--<Reference Include="System.Xml.Linq" />-->
|
||||
</ItemGroup>
|
||||
|
|
|
@ -5,7 +5,6 @@ using System.Drawing.Drawing2D;
|
|||
using System.Drawing.Imaging;
|
||||
using System.Drawing.Text;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using BizHawk.Client.Common;
|
||||
using BizHawk.Emulation.Common;
|
||||
|
@ -77,7 +76,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public bool HasGUISurface => _GUISurface != null;
|
||||
|
||||
public Padding Padding { get; set; } = new Padding(0);
|
||||
public (int Left, int Top, int Right, int Bottom) Padding { get; set; } = (0, 0, 0, 0);
|
||||
|
||||
public void AddMessage(string message) => GlobalWin.OSD.AddMessage(message);
|
||||
|
||||
|
|
Loading…
Reference in New Issue