tastudio: branch text edit popup follows mouse pointer

This commit is contained in:
feos 2017-03-15 19:24:27 +03:00
parent 6e99227c72
commit 4eaa04d412
1 changed files with 4 additions and 1 deletions

View File

@ -478,7 +478,10 @@ namespace BizHawk.Client.EmuHawk
InitialValue = branch.UserText
};
var result = i.ShowHawkDialog();
var point = Cursor.Position;
point.Offset(i.Width / -2, i.Height / -2);
var result = i.ShowHawkDialog(position: point);
if (result == DialogResult.OK)
{
branch.UserText = i.PromptText;