Fix compilation of Bizware.Test app

This commit is contained in:
YoshiRulz 2025-03-29 07:04:07 +10:00
parent 9ac560d49d
commit ec0510367a
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
<OutputType>WinExe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Drawing.Common" PrivateAssets="all" />
<Reference Include="System.Windows.Forms" />
<ProjectReference Include="$(ProjectDir)../BizHawk.Bizware.Graphics.Controls/BizHawk.Bizware.Graphics.Controls.csproj" />
<EmbeddedResource Include="TestImages/**/*" />

View File

@ -86,8 +86,8 @@ namespace BizHawk.Bizware.Test
var running = true;
c.MouseClick += (_, args) =>
{
if (args.Button == MouseButtons.Left) running ^= true;
else if (args.Button == MouseButtons.Right) c.Retain ^= true;
if (args.Button == MouseButtons.Left) running = !running;
else if (args.Button == MouseButtons.Right) c.Retain = !c.Retain;
};
var start = DateTime.Now;