Fix LuaPictureBox

Got left out when fixing other files. Sorry.
This commit is contained in:
Trivial-Man 2017-07-13 22:48:37 -06:00 committed by GitHub
parent 6cb3921864
commit 8e0926449f
1 changed files with 14 additions and 3 deletions
BizHawk.Client.EmuHawk/tools/Lua

View File

@ -2,9 +2,8 @@
using System.Drawing;
using System.Windows.Forms;
using LuaInterface;
using NLua;
using System.Collections.Generic;
using System.IO;
namespace BizHawk.Client.EmuHawk
{
@ -381,5 +380,17 @@ namespace BizHawk.Client.EmuHawk
var p = PointToClient(Control.MousePosition);
return p;
}
private void DoLuaClick(object sender, EventArgs e)
{
LuaWinform parent = Parent as LuaWinform;
parent?.DoLuaEvent(Handle);
}
protected override void OnClick(EventArgs e)
{
DoLuaClick(this, e);
base.OnClick(e);
}
}
}
}