summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/GameListCtrl.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2017-05-28 23:02:03 +0100
committerTillmann Karras <tilkax@gmail.com>2017-05-28 23:02:03 +0100
commit5c08b1d7042e09409abd0d52f00dd0e13ca6f73f (patch)
tree2ae4551bf8dcbef1baaeff37510f49f700eea3c6 /Source/Core/DolphinWX/GameListCtrl.cpp
parent599774aacc97f7c45eb96145cc1c5b7675158286 (diff)
WX: improve game list reload speed
When loading a big game list, this eliminates the long delay after the progress dialog disappears.
Diffstat (limited to 'Source/Core/DolphinWX/GameListCtrl.cpp')
-rw-r--r--Source/Core/DolphinWX/GameListCtrl.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp
index b620c2688e..3ec0ed3d65 100644
--- a/Source/Core/DolphinWX/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/GameListCtrl.cpp
@@ -437,6 +437,7 @@ void CGameListCtrl::ReloadList()
// add all items
for (int i = 0; i < (int)m_ISOFiles.size(); i++)
InsertItemInReportView(i);
+ SetColors();
// Sort items by Title
if (!sorted)
@@ -596,9 +597,6 @@ void CGameListCtrl::InsertItemInReportView(long index)
if (GetColumnWidth(i) != 0)
UpdateItemAtColumn(item_index, i);
}
-
- // List colors
- SetColors();
}
static wxColour blend50(const wxColour& c1, const wxColour& c2)
@@ -626,7 +624,7 @@ void CGameListCtrl::SetColors()
wxColour color = (i & 1) ? blend50(wxSystemSettings::GetColour(wxSYS_COLOUR_3DLIGHT),
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)) :
wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
- CGameListCtrl::SetItemBackgroundColour(i, color);
+ SetItemBackgroundColour(i, color);
SetItemTextColour(i, ContrastText(color));
}
}