Mercurial > audlegacy
diff audacious/widgets/widget.c @ 1793:1ccc69c49768 trunk
[svn] - do not draw widgets which are invisible (performance tweak)
author | nenolod |
---|---|
date | Wed, 04 Oct 2006 19:45:14 -0700 |
parents | a6e6d3500c13 |
children | 4d2a5c9adc96 |
line wrap: on
line diff
--- a/audacious/widgets/widget.c Wed Oct 04 19:39:30 2006 -0700 +++ b/audacious/widgets/widget.c Wed Oct 04 19:45:14 2006 -0700 @@ -117,6 +117,9 @@ void widget_draw(Widget * widget) { + if (widget->visible == FALSE) + continue; + widget_lock(widget); WIDGET(widget)->redraw = TRUE; widget_unlock(widget);