possibly fix HiDPI input problem on macOS/Wayland

issue #1425
This commit is contained in:
tildearrow 2023-08-30 05:21:33 -05:00
parent ff3cebfffd
commit 6ac4529f3b
4 changed files with 9 additions and 16 deletions

View file

@ -3628,6 +3628,8 @@ bool FurnaceGUI::loop() {
if (prevScrW!=scrW || prevScrH!=scrH) {
logV("size change 2: %dx%d (from %dx%d)",scrW,scrH,prevScrW,prevScrH);
}
ImGui::GetIO().InputScale=(float)canvasW/(float)scrW;
}
wantCaptureKeyboard=ImGui::GetIO().WantTextInput;