Skip to content

Commit 5ee9c2a

Browse files
authored
Demo: Fixed font scaling warning if ImGuiBackendFlags_RendererHasTextures is set (#8736)
1 parent 4f4bc7c commit 5ee9c2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

imgui.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15940,7 +15940,8 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
1594015940
DragFloat("FontScaleDpi", &style.FontScaleDpi, 0.02f, 0.5f, 5.0f);
1594115941
//SetItemTooltip("When io.ConfigDpiScaleFonts is set, this value is automatically overwritten.");
1594215942
//EndDisabled();
15943-
BulletText("Warning: Font scaling will NOT be smooth, because\nImGuiBackendFlags_RendererHasTextures is not set!");
15943+
if ((io.BackendFlags & ImGuiBackendFlags_RendererHasTextures) == 0)
15944+
BulletText("Warning: Font scaling will NOT be smooth, because\nImGuiBackendFlags_RendererHasTextures is not set!");
1594415945
BulletText("Load a nice font for better results!");
1594515946
BulletText("Please submit feedback:");
1594615947
SameLine(); TextLinkOpenURL("#8465", "https://github.com/ocornut/imgui/issues/8465");

0 commit comments

Comments
 (0)