#14364 closed feature request (fixed)

GUI: Redraw only widgets which have been changed

Reported by: mikrosk Owned by: mikrosk
Priority: normal Component: GUI
Version: Keywords:
Cc: Game:

Description

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.

Change History (2)

comment:1 by mikrosk, 14 months ago

Component: --Unset--GUI

comment:2 by mikrosk, 13 months ago

Owner: set to mikrosk
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.