Input troll - refresh on orientation change

This commit is contained in:
adelikat 2014-08-10 14:25:59 +00:00
parent 248b858978
commit 85d0f29ed2
2 changed files with 7 additions and 0 deletions

View File

@ -335,6 +335,12 @@ namespace BizHawk.Client.EmuHawk.CustomControls
[DllImport("user32.dll")]
private static extern IntPtr GetDC(IntPtr hWnd);
[DllImport("user32.dll")]
private static extern IntPtr BeginPaint(IntPtr hWnd, ref IntPtr lpPaint);
[DllImport("user32.dll")]
private static extern IntPtr EndPaint(IntPtr hWnd, IntPtr lpPaint);
[DllImport("gdi32.dll")]
private static extern int Rectangle(IntPtr hdc, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);

View File

@ -308,6 +308,7 @@ namespace BizHawk.Client.EmuHawk
if (e.Control && !e.Alt && !e.Shift && e.KeyCode == Keys.R) // Ctrl + R
{
HorizontalOrientation ^= true;
Refresh();
}
base.OnKeyDown(e);