Skip to content

Commit

Permalink
Fix for keyboard width.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Jan 8, 2023
1 parent a6a1542 commit 87c8174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emulator/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ void MainWindow_ShowHideKeyboard()
if (g_hwndKeyboard != INVALID_HANDLE_VALUE)
{
::DestroyWindow(g_hwndKeyboard);
g_hwndKeyboard = (HWND) INVALID_HANDLE_VALUE;
g_hwndKeyboard = (HWND)INVALID_HANDLE_VALUE;
}
}
else
Expand All @@ -575,6 +575,7 @@ void MainWindow_ShowHideKeyboard()
RECT rcScreen; GetWindowRect(g_hwndScreen, &rcScreen);
int yKeyboardTop = rcScreen.bottom - rcScreen.top + 8;
int cxKeyboardWidth = rcScreen.right - rcScreen.left;
cxKeyboardWidth = max(cxKeyboardWidth, 580);
int cyKeyboardHeight = 200;

if (g_hwndKeyboard == INVALID_HANDLE_VALUE)
Expand Down

0 comments on commit 87c8174

Please sign in to comment.