]> Dogcows Code - chaz/openbox/commitdiff
add the rgba alpha to the menu entries
authorDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:24:04 +0000 (03:24 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 29 May 2007 03:24:04 +0000 (03:24 +0000)
openbox/menu.h
openbox/menuframe.c

index 990e946c5ecc8962972eab50fe6c15f24271f72b..6d4bbd472c3748e29ebc8dc2ceb63edd8c647074 100644 (file)
@@ -116,6 +116,7 @@ struct _ObNormalMenuEntry {
     /* Icon shit */
     gint icon_width;
     gint icon_height;
+    gint icon_alpha;
     RrPixel32 *icon_data;
 
     /* Mask icon */
index 813354cdb03b29b385f024c70411315f7f7fafec..5fea0ab05c7de70567cfd532aa430af518d0cb39 100644 (file)
@@ -499,8 +499,8 @@ static void menu_entry_frame_render(ObMenuEntryFrame *self)
             self->entry->data.normal.icon_width;
         self->a_icon->texture[0].data.rgba.height =
             self->entry->data.normal.icon_height;
-        /* XXX determine this from iconic window */
-        self->a_icon->texture[0].data.rgba.width = 0xff;
+        self->a_icon->texture[0].data.rgba.width =
+            self->entry->data.normal.icon_alpha;
         self->a_icon->texture[0].data.rgba.data =
             self->entry->data.normal.icon_data;
         self->a_icon->surface.parent = item_a;
This page took 0.02577 seconds and 4 git commands to generate.