mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
Fix cursor on Windows 98
This commit is contained in:
parent
a485f4c6af
commit
b692db5a16
2 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
Copyright (c) 2014 - 2020, UnknownShadow200
|
||||
Copyright (c) 2014 - 2021, UnknownShadow200
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
|
|
|
@ -701,7 +701,7 @@ static ATOM DoRegisterClass(void) {
|
|||
GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), 0);
|
||||
wc.hIconSm = (HICON)LoadImage(win_instance, MAKEINTRESOURCE(1), IMAGE_ICON,
|
||||
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0);
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hCursor = LoadCursorA(NULL, IDC_ARROW);
|
||||
|
||||
if ((atom = RegisterClassExW(&wc))) return atom;
|
||||
/* Windows 9x does not support W API functions */
|
||||
|
@ -3822,6 +3822,7 @@ void Window_OpenKeyboard(const struct OpenKeyboardArgs* args) {
|
|||
elem = document.createElement('textarea');
|
||||
}
|
||||
elem.setAttribute('style', 'position:absolute; left:0; bottom:0; margin: 0px; width: 100%');
|
||||
elem.setAttribute('placeholder', UTF8ToString($2));
|
||||
elem.value = UTF8ToString($0);
|
||||
|
||||
elem.addEventListener('input',
|
||||
|
@ -3838,7 +3839,7 @@ void Window_OpenKeyboard(const struct OpenKeyboardArgs* args) {
|
|||
}
|
||||
elem.focus();
|
||||
elem.click();
|
||||
}, str, args->type);
|
||||
}, str, args->type, args->placeholder);
|
||||
}
|
||||
|
||||
void Window_SetKeyboardText(const cc_string* text) {
|
||||
|
|
Loading…
Reference in a new issue