changeset 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 b8f082ddd9f1
children 4d2a5c9adc96
files ChangeLog audacious/widgets/widget.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 04 19:39:30 2006 -0700
+++ b/ChangeLog	Wed Oct 04 19:45:14 2006 -0700
@@ -1,3 +1,13 @@
+2006-10-05 02:39:30 +0000  William Pitcock <nenolod@nenolod.net>
+  revision [2541]
+  - implement mainwinTextVisible, mainwinVisVisible, mainwinOthertextVisible hints
+  
+  trunk/audacious/mainwin.c      |   15 +++++++++++++++
+  trunk/audacious/widgets/skin.c |   24 ++++++++++++++++++++++++
+  trunk/audacious/widgets/skin.h |   10 ++++++++++
+  3 files changed, 49 insertions(+)
+
+
 2006-10-05 02:00:09 +0000  William Pitcock <nenolod@nenolod.net>
   revision [2539]
   - really preserve the old message on othertext info
--- 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);