Fix overlapped button, ImGui::Indent should also consider DPI scale#118
Fix overlapped button, ImGui::Indent should also consider DPI scale#118hyv1001 merged 3 commits intoBoomingTech:mainfrom
Conversation
| int clear(); | ||
| void setDefaultStyle(); | ||
| protected: | ||
| float contentScale(); |
There was a problem hiding this comment.
suggest naming: float getConentScale() const and float getIndentScale() const
|
Thx for your awesome work, I will test it on Linux! |
|
Although |
I think it's a UI-related variable, so |
As the title, there is a button overlapped by other GUI elements while resolution scale is larger than 100%. #92
Case
ImGui::Indentalso need consider DPI scale on Windows.However, the real problem might be GLFW. It's using virtual resolution on macOS but real pixel resolution on Windows.
Eventually, it will have side-effect on ImGui.
Tested on:
Windows 10 Pro 21h2
macOS BIg sur 11.6.5
Not tested on Linux.