wIconSetHighlited: Do not create the icon again

The function wIconSetHighlited() is now faster because it doesn't
re-create the icon before setting the Highlited status. Now it only
draws the icon pixmap.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-04 12:54:16 +00:00
committed by Carlos R. Mafra
parent c97bf19079
commit cca2814afe
+1 -2
View File
@@ -554,8 +554,7 @@ void wIconSetHighlited(WIcon *icon, Bool flag)
return;
icon->highlighted = flag;
icon->force_paint = True;
wIconPaint(icon);
update_icon_pixmap(icon);
}
#endif