Fix LuaPictureBox
Got left out when fixing other files. Sorry.
This commit is contained in:
parent
6cb3921864
commit
8e0926449f
|
@ -2,9 +2,8 @@
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
using LuaInterface;
|
using NLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace BizHawk.Client.EmuHawk
|
namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
|
@ -381,5 +380,17 @@ namespace BizHawk.Client.EmuHawk
|
||||||
var p = PointToClient(Control.MousePosition);
|
var p = PointToClient(Control.MousePosition);
|
||||||
return p;
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue