Redrawing an icon every time the cursor moves between items costs a lot
of time.  So now each icon is drawn once, and s copied when needed.
This commit is contained in:
phillbush
2020-07-28 14:51:12 -03:00
parent ced6b0f73e
commit 675a2008a6
2 changed files with 30 additions and 5 deletions

View File

@@ -63,6 +63,7 @@ struct Item {
struct Item *prev; /* previous item */
struct Item *next; /* next item */
struct Menu *submenu; /* submenu spawned by clicking on item */
Drawable sel, unsel; /* pixmap for selected and unselected icons */
Imlib_Image icon;
};