ImGui: use cached value for clamped window width

Remove extraneous indirection.
This commit is contained in:
Kawe Mazidjatari 2024-05-26 22:22:46 +02:00
parent 6db088749f
commit adb3b66fa4

View File

@ -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