From 85bfab7d51e8a8e99a0ce8fcbe37409e2497f558 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Fri, 24 Mar 2023 16:13:11 +0300 Subject: [PATCH] fix sandbox --- src/sandbox/layers/test_panel/test_panel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sandbox/layers/test_panel/test_panel.cpp b/src/sandbox/layers/test_panel/test_panel.cpp index fe0533d..d3908cc 100644 --- a/src/sandbox/layers/test_panel/test_panel.cpp +++ b/src/sandbox/layers/test_panel/test_panel.cpp @@ -21,8 +21,7 @@ namespace tr::layers BEGIN_IMGUI_WIN(); - ImFont* font = try_engine::style::fonts::get_font(font_type::ICON, 18); - ImGui::PushFont(font); + TR_PUSH_FONT(ICON, 18); if (ImGui::Button(try_engine::style::icon::ICON_STOP, ImVec2(28, 30))) { em->execute(std::string("asdf"), "asdf"); @@ -31,7 +30,7 @@ namespace tr::layers // ImGui::Text(try_engine::style::icon::ICON_PAINT_BRUSH " Paint" ); ImGui::Text("\xef\x87\xbc"); - ImGui::PopFont(); + TR_POP_FONT(); END_IMGUI_WIN(); }