mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-24 13:49:17 +01:00
ConfigMenu: Reduce flickering when a plugin config is opened
This commit is contained in:
parent
343092c338
commit
2047d5725b
@ -35,6 +35,12 @@ CategoryRenderer::CategoryRenderer(const GeneralConfigInformation *info, const W
|
|||||||
if (!mItemRenderer.empty()) {
|
if (!mItemRenderer.empty()) {
|
||||||
mItemRenderer[mCursorPos]->SetIsSelected(true);
|
mItemRenderer[mCursorPos]->SetIsSelected(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure to call Update to get the current text of an item.
|
||||||
|
for (uint32_t i = 0; i < mItemRenderer.size(); i++) {
|
||||||
|
bool isHighlighted = ((int) i == mCursorPos);
|
||||||
|
mItemRenderer[i]->Update(isHighlighted);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CategoryRenderer::~CategoryRenderer() {
|
CategoryRenderer::~CategoryRenderer() {
|
||||||
|
Loading…
Reference in New Issue
Block a user