[Scummvm-tracker] [ScummVM :: Bugs] #14364: GUI: Redraw only widgets which have been changed
ScummVM :: Bugs
trac at scummvm.org
Sat Mar 25 22:19:20 UTC 2023
#14364: GUI: Redraw only widgets which have been changed
----------------------------+-----------------------
Reporter: mikrosk | Owner: (none)
Type: feature request | Status: new
Priority: normal | Component: --Unset--
Version: | Keywords:
Game: |
----------------------------+-----------------------
Current implementation looks like this:
{{{
void Widget::setEnabled(bool e) {
if ((_flags & WIDGET_ENABLED) != e) {
if (e)
setFlags(WIDGET_ENABLED);
else
clearFlags(WIDGET_ENABLED);
g_gui.scheduleTopDialogRedraw();
}
}
}}}
scheduleTopDialogRedraw() completely clears and redraws the overlay,
resulting in an unpleasant pause on weaker hardware configs when scrolling
with the cursor up and down and e.g. the Load button is disabled for some
game.
--
Ticket URL: <https://bugs.scummvm.org/ticket/14364>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list