little bugfix

This commit is contained in:
ardi@ist-einmalig.de 2009-05-27 14:51:04 +00:00
parent 78a9822e1a
commit b2e780567e

View File

@ -3436,6 +3436,7 @@ static int MenuDiscList()
if (Settings.gameDisplay==list){ if (Settings.gameDisplay==list){
Settings.gameDisplay=grid; Settings.gameDisplay=grid;
mainWindow->Remove(&gameBrowser); mainWindow->Remove(&gameBrowser);
gameGrid.Reload(gameList, gameCnt); // initialize before append
mainWindow->Append(&gameGrid); mainWindow->Append(&gameGrid);
if (GameIDTxt)w.Remove(GameIDTxt); if (GameIDTxt)w.Remove(GameIDTxt);
@ -3464,6 +3465,7 @@ static int MenuDiscList()
Settings.gameDisplay=list; Settings.gameDisplay=list;
mainWindow->Remove(&gameGrid); mainWindow->Remove(&gameGrid);
gameBrowser.Reload(gameList, gameCnt); // initialize before append
mainWindow->Append(&gameBrowser); mainWindow->Append(&gameBrowser);
gridBtn.SetImage(&gridBtnImg_g); gridBtn.SetImage(&gridBtnImg_g);
favoriteBtn.SetPosition(20,15); favoriteBtn.SetPosition(20,15);