add the rgba alpha to the menu entries
This commit is contained in:
parent
c4eaa94385
commit
319fb35962
2 changed files with 3 additions and 2 deletions
|
@ -116,6 +116,7 @@ struct _ObNormalMenuEntry {
|
|||
/* Icon shit */
|
||||
gint icon_width;
|
||||
gint icon_height;
|
||||
gint icon_alpha;
|
||||
RrPixel32 *icon_data;
|
||||
|
||||
/* Mask icon */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue