Skip to content

Commit

Permalink
Align text and button in compatibility page
Browse files Browse the repository at this point in the history
Co-authored-by: antangelo <[email protected]>
  • Loading branch information
Spidy123222 and antangelo committed Jul 10, 2024
1 parent 8a7d2a8 commit 1f3f9e3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ui/xui/compat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,17 @@ void CompatibilityReporter::Draw()
ImGui::SameLine();
}

ImGui::SetCursorPosX(ImGui::GetWindowWidth()-(120+10)*g_viewport_mgr.m_scale);

ImGui::SetItemDefaultFocus();
if (g_config.perf.override_clockspeed) {
ImGui::PushItemFlag(ImGuiItemFlags_Disabled, true);
ImGui::PushStyleVar(ImGuiStyleVar_Alpha, ImGui::GetStyle().Alpha * 0.5f);

ImGui::Text("Reports cannot be made while using altered CPU clock speeds");
ImGui::SameLine();
}

ImGui::SetCursorPosX(ImGui::GetWindowWidth()-(120+10)*g_viewport_mgr.m_scale);

ImGui::SetItemDefaultFocus();
if (ImGui::Button("Send", ImVec2(120*g_viewport_mgr.m_scale, 0))) {
did_send = true;
send_result = report.Send();
Expand Down

0 comments on commit 1f3f9e3

Please sign in to comment.