Remove WinForms dependency from BizHawk.Client.Common (used in ApiHawk)

This commit is contained in:
YoshiRulz 2020-02-19 04:13:37 +10:00
parent 3afcf416e8
commit 4d4496af0d
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
using System; using System;
using System.Drawing; using System.Drawing;
using System.Drawing.Imaging; using System.Drawing.Imaging;
using System.Windows.Forms;
namespace BizHawk.Client.Common namespace BizHawk.Client.Common
{ {
@ -20,7 +19,7 @@ namespace BizHawk.Client.Common
void SetPadding(int all); void SetPadding(int all);
void SetPadding(int x, int y); void SetPadding(int x, int y);
void SetPadding(int l, int t, int r, int b); void SetPadding(int l, int t, int r, int b);
Padding GetPadding(); (int Left, int Top, int Right, int Bottom) GetPadding();
#endregion #endregion
void AddMessage(string message); void AddMessage(string message);

View File

@ -17,7 +17,7 @@
</Reference> </Reference>
<!--<Reference Include="System.Drawing" />--> <!--<Reference Include="System.Drawing" />-->
<Reference Include="System.IO.Compression" /> <Reference Include="System.IO.Compression" />
<Reference Include="System.Windows.Forms" /> <!--<Reference Include="System.Windows.Forms" />-->
<!--<Reference Include="System.Xml" />--> <!--<Reference Include="System.Xml" />-->
<!--<Reference Include="System.Xml.Linq" />--> <!--<Reference Include="System.Xml.Linq" />-->
</ItemGroup> </ItemGroup>

View File

@ -102,7 +102,7 @@ namespace BizHawk.Client.EmuHawk
public void SetPadding(int l, int t, int r, int b) => _padding = new Padding(l, t, r, b); public void SetPadding(int l, int t, int r, int b) => _padding = new Padding(l, t, r, b);
public Padding GetPadding() => _padding; public (int Left, int Top, int Right, int Bottom) GetPadding() => (_padding.Left, _padding.Top, _padding.Right, _padding.Bottom);
public void AddMessage(string message) => GlobalWin.OSD.AddMessage(message); public void AddMessage(string message) => GlobalWin.OSD.AddMessage(message);