[Aptitude-svn-commit] r3320 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Mon, 06 Jun 2005 18:08:56 +0000


Author: dburrows
Date: Mon Jun  6 18:08:54 2005
New Revision: 3320

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
Log:
Set the display attributes before entering paint() even for transparent widgets.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Jun  6 18:08:54 2005
@@ -1,5 +1,12 @@
 2005-06-06  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/vscreen_widget.cc:
+
+	Always set the display attributes of a widget to its basic style,
+	even if it's non-opaque.  No change to current behavior as all
+	existing transparent widgets are also invisible except for their
+	subwidgets.
+
 	* src/vscreen/vs_table.cc, src/vscreen/vs_table.h:
 
 	Update the vs_table widget for the new display protocol.

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc	Mon Jun  6 18:08:54 2005
@@ -180,9 +180,9 @@
     {
       bkgd(bgattr);
       erase();
-      attrset(bgattr);
     }
 
+  attrset(bgattr);
   paint(basic_st);
 }