Skip to content

Commit

Permalink
FullscrenUI: Fix field spacing scaling in game list view
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jan 1, 2025
1 parent 0fdf984 commit 179e2f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/fullscreen_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6929,14 +6929,14 @@ void FullscreenUI::DrawGameList(const ImVec2& heading_size)
}

const float work_width = ImGui::GetCurrentWindow()->WorkRect.GetWidth();
static constexpr float field_margin_y = 20.0f;
static constexpr float field_margin_y = 4.0f;
static constexpr float start_x = 50.0f;
float text_y = info_top_margin + cover_size + info_top_margin;
float text_width;

PushPrimaryColor();
ImGui::SetCursorPos(LayoutScale(start_x, text_y));
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(0.0f, field_margin_y));
ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, LayoutScale(0.0f, field_margin_y));
ImGui::BeginGroup();

if (selected_entry)
Expand Down Expand Up @@ -6967,7 +6967,7 @@ void FullscreenUI::DrawGameList(const ImVec2& heading_size)
text_width = ImGui::CalcTextSize(selected_entry->serial.c_str(), nullptr, false, work_width).x;
ImGui::SetCursorPosX((work_width - text_width) / 2.0f);
ImGui::TextWrapped("%s", selected_entry->serial.c_str());
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + 15.0f);
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + LayoutScale(15.0f));

// region
{
Expand Down

0 comments on commit 179e2f1

Please sign in to comment.