mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
ImGui: use cached value for clamped window width
Remove extraneous indirection.
This commit is contained in:
parent
6db088749f
commit
adb3b66fa4
@ -768,7 +768,7 @@ void CConsole::DetermineAutoCompleteWindowRect(void)
|
||||
const float maxWindowWidth = con_autocomplete_window_width.GetFloat();
|
||||
|
||||
const float flWindowWidth = maxWindowWidth > 0
|
||||
? ImMin(con_autocomplete_window_width.GetFloat(), lastItemRectSize.x)
|
||||
? ImMin(maxWindowWidth, lastItemRectSize.x)
|
||||
: lastItemRectSize.x;
|
||||
|
||||
// NOTE: minimum vertical size of the window, going below this will
|
||||
|
Loading…
x
Reference in New Issue
Block a user