From 463e4eb5845d9707d3df5dad70cec1d2339aad9f Mon Sep 17 00:00:00 2001 From: JusicP Date: Sun, 9 Jan 2022 20:17:11 +0200 Subject: [PATCH] Fix ypos scale for chapters panel --- gameui/NewGameDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gameui/NewGameDialog.cpp b/gameui/NewGameDialog.cpp index e349f65d..1c341752 100644 --- a/gameui/NewGameDialog.cpp +++ b/gameui/NewGameDialog.cpp @@ -615,6 +615,11 @@ void CNewGameDialog::ApplySettings( KeyValues *inResourceData ) BaseClass::ApplySettings( inResourceData ); int ypos = inResourceData->GetInt( "chapterypos", 40 ); + if (IsProportional()) + { + ypos = scheme()->GetProportionalScaledValueEx(GetScheme(), ypos); + } + for ( int i = 0; i < NUM_SLOTS; ++i ) { m_PanelYPos[i] = ypos;