Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit de6047e

Browse files
committed
Remove unused variable
1 parent a11ea42 commit de6047e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Menus/MainMenuGUI.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,9 @@ int MainMenuGUI::Create(Controller *pController)
195195
m_apScreenBox[QUITSCREEN] = dynamic_cast<GUICollectionBox *>(m_pGUIController->GetControl("QuitConfirmBox"));
196196
m_apScreenBox[MODMANAGERSCREEN] = dynamic_cast<GUICollectionBox *>(m_pGUIController->GetControl("ModManagerScreen"));
197197

198-
GUICollectionBox *pRootBox = m_apScreenBox[ROOT];
199-
pRootBox->SetPositionAbs((g_FrameMan.GetResX() - pRootBox->GetWidth()) / 2, 0);// (g_FrameMan.GetResY() - pRootBox->GetHeight()) / 2);
198+
m_apScreenBox[ROOT]->SetPositionAbs((g_FrameMan.GetResX() - m_apScreenBox[ROOT]->GetWidth()) / 2, 0);// (g_FrameMan.GetResY() - m_apScreenBox[ROOT]->GetHeight()) / 2);
200199
// NO, this screws up the menu positioning!
201-
// pRootBox->Resize(pRootBox->GetWidth(), g_FrameMan.GetResY());
200+
// m_apScreenBox[ROOT]->Resize(m_apScreenBox[ROOT]->GetWidth(), g_FrameMan.GetResY());
202201

203202
// Set up screens' initial positions and visibility
204203
m_apScreenBox[QUITSCREEN]->CenterInParent(true, true);

0 commit comments

Comments
 (0)