From 8a43415c0c28caae4cc8dd7d2f7c4d9aa1c958df Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 18 Dec 2008 15:18:47 +0100 Subject: [PATCH] image: add alpha property Signed-off-by: Julien Danjou --- common/tokenize.gperf | 1 + image.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/common/tokenize.gperf b/common/tokenize.gperf index 0f0d0d6a8..947ccdcbb 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -1,4 +1,5 @@ align +alpha bar_data_add bar_properties_set bg diff --git a/image.c b/image.c index 38486ae19..06950afad 100644 --- a/image.c +++ b/image.c @@ -358,6 +358,10 @@ luaA_image_index(lua_State *L) imlib_context_set_image((*image)->image); lua_pushnumber(L, imlib_image_get_height()); break; + case A_TK_ALPHA: + imlib_context_set_image((*image)->image); + lua_pushboolean(L, imlib_image_has_alpha()); + break; default: return 0; }