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
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:
parent
152ee66a04
commit
3bb33cb3bf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue