When setting WindowRounding > 0 and io.FontGlobalScale to some non-integer values, a pixel wide space appears between the title bar and body of the window
But it does not happen with every non integer FontGlobalScale
WindowRounding = 0, FontGlobalScale = 1.2
WindowRounding = 1, FontGlobalScale = 1.2
WindowRounding = 1, FontGlobalScale = 1.3
example:
io.FontGlobalScale = 1.2;
// Colors to make it more visible
ImGui::PushStyleColor(ImGuiCol_WindowBg, { 0, 0, 0, 1 });
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 1);
ImGui::Begin("###1");
ImGui::End();
ImGui::PushStyleColor(ImGuiCol_WindowBg, { 1, 1, 1, 1 });
ImGui::Begin("###2");
ImGui::End();
ImGui::PopStyleColor(2);
ImGui::PopStyleVar();
Version: 1.90 (WIP)
Branch: master
Opengl3 + GLFW
Operating System: Windows 10 and Ubuntu 20
When setting
WindowRounding
> 0 andio.FontGlobalScale
to some non-integer values, a pixel wide space appears between the title bar and body of the windowBut it does not happen with every non integer
FontGlobalScale
WindowRounding = 0, FontGlobalScale = 1.2
WindowRounding = 1, FontGlobalScale = 1.2
WindowRounding = 1, FontGlobalScale = 1.3
example:
Version: 1.90 (WIP) Branch: master
Opengl3 + GLFW Operating System: Windows 10 and Ubuntu 20