Skip to content

Commit

Permalink
Scale preprocessor definitions popup window with font size
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Jun 1, 2023
1 parent 160ae44 commit eb9b2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/runtime_gui.cpp
Expand Up @@ -2815,7 +2815,7 @@ void reshade::runtime::draw_variable_editor()
const float button_size = ImGui::GetFrameHeight();
const float button_spacing = _imgui_context->Style.ItemInnerSpacing.x;

ImGui::BeginChild("##definitions", ImVec2(400.0f, popup_height));
ImGui::BeginChild("##definitions", ImVec2(30.0f * _font_size, popup_height));

if (ImGui::BeginTabBar("##definition_types", ImGuiTabBarFlags_NoTooltip))
{
Expand Down

0 comments on commit eb9b2ec

Please sign in to comment.