Add forgotten multiply by two to titlebar button right alignment position calculation.
Some checks failed
Build / build-gentoo (push) Successful in 2m52s
Build / download-system-deps (push) Successful in 5m53s
Build / get-source-code (push) Successful in 13m26s
Build / build-deb (push) Failing after 5m53s
Build / build-appimage (push) Successful in 4m33s
Build / build-android (push) Failing after 3m13s
Build / build-windows (push) Failing after 6m56s

This commit is contained in:
Zachary Hall 2025-01-15 12:54:30 -08:00
parent 152ee66a04
commit 3bb33cb3bf

View file

@ -508,7 +508,7 @@ void RendererBackend::EndMainMenuBar() {
float padding = ImGui::GetStyle().FramePadding.x;
float spacing = ImGui::GetStyle().ItemSpacing.x;
for (size_t i = 0; i < titlebar_btn_count; i++) {
tmp -= padding;
tmp -= padding * 2.0f;
// No need to use the correct index, as long as this is hit only once.
if (i == 0) tmp -= spacing / 2.0f;
else tmp -= spacing;