Skip to content
Snippets Groups Projects
Commit 42a86c0a authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't require that control keys be converted from unicode to codepage

parent 5fbef72c
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4212 passed
......@@ -359,8 +359,8 @@ gdi_handle_wm_char(WPARAM wParam, LPARAM lParam)
cp = wParam;
}
// Translate from unicode to codepage...
ch = cpchar_from_unicode_cpoint(getcodepage(), cp, 0);
if (ch) {
ch = cpchar_from_unicode_cpoint(getcodepage(), cp, cp);
if (ch && ch < 256) {
for (i = 0; i < repeat; i++)
gdi_add_key(ch);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment