mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-03-30 07:01:49 +00:00
reddog_window: fix variable titlebar button positions
This commit is contained in:
parent
00e148b182
commit
110f341af6
1 changed files with 2 additions and 2 deletions
|
|
@ -262,7 +262,7 @@ void Reddog::Window::DrawFrame()
|
|||
}
|
||||
}
|
||||
|
||||
ImVec2 minimumButtonMin = { closeButtonMin.x - cmnSize - controlsMargin, windowPos.y + 3 };
|
||||
ImVec2 minimumButtonMin = { windowPos.x + windowSize.x - cmnSize - controlsWidth - controlsMargin, windowPos.y + 3 };
|
||||
ImVec2 minimumButtonMax = { minimumButtonMin.x + cmnSize, minimumButtonMin.y + cmnSize };
|
||||
|
||||
if (IsMinimumVisible)
|
||||
|
|
@ -290,7 +290,7 @@ void Reddog::Window::DrawFrame()
|
|||
}
|
||||
}
|
||||
|
||||
ImVec2 pinButtonMin = { minimumButtonMin.x - cmnSize - controlsMargin, windowPos.y + 3 };
|
||||
ImVec2 pinButtonMin = { windowPos.x + windowSize.x - cmnSize - controlsWidth - controlsMargin, windowPos.y + 3 };
|
||||
ImVec2 pinButtonMax = { pinButtonMin.x + cmnSize, pinButtonMin.y + cmnSize };
|
||||
|
||||
if (IsPinVisible)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue