image: add alpha property
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8fb0ba2417
commit
8a43415c0c
|
@ -1,4 +1,5 @@
|
||||||
align
|
align
|
||||||
|
alpha
|
||||||
bar_data_add
|
bar_data_add
|
||||||
bar_properties_set
|
bar_properties_set
|
||||||
bg
|
bg
|
||||||
|
|
4
image.c
4
image.c
|
@ -358,6 +358,10 @@ luaA_image_index(lua_State *L)
|
||||||
imlib_context_set_image((*image)->image);
|
imlib_context_set_image((*image)->image);
|
||||||
lua_pushnumber(L, imlib_image_get_height());
|
lua_pushnumber(L, imlib_image_get_height());
|
||||||
break;
|
break;
|
||||||
|
case A_TK_ALPHA:
|
||||||
|
imlib_context_set_image((*image)->image);
|
||||||
|
lua_pushboolean(L, imlib_image_has_alpha());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue