mirror of
https://github.com/ocornut/imgui.git
synced 2026-06-01 09:44:20 +08:00
Fonts: fix PushFont(NULL) to work as advertised.
Didn't properly finish ca72eb0.
This commit is contained in:
@@ -8906,8 +8906,8 @@ void ImGui::SetFontRasterizerDensity(float rasterizer_density)
|
|||||||
void ImGui::PushFont(ImFont* font, float font_size_base)
|
void ImGui::PushFont(ImFont* font, float font_size_base)
|
||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
//if (font == NULL) // Before 1.92 (June 2025), PushFont(NULL) == PushFont(GetDefaultFont())
|
if (font == NULL) // Before 1.92 (June 2025), PushFont(NULL) == PushFont(GetDefaultFont())
|
||||||
// font = g.Font;
|
font = g.Font;
|
||||||
IM_ASSERT(font != NULL);
|
IM_ASSERT(font != NULL);
|
||||||
IM_ASSERT(font_size_base >= 0.0f);
|
IM_ASSERT(font_size_base >= 0.0f);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user