diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 01:06:43 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-09-09 01:06:47 +0200 |
commit | 92efe73791d0998536042bfab5a1babc67d168c7 (patch) | |
tree | 6c5f7e9d9a8e5b439f50821f498ae6f6df776f36 /im/src/lua5/imlua_image.c | |
parent | f23d91bd3ba87c8fe6691af9ebd1a5210e2fbaec (diff) |
Upgrading to IM 3.6.2, and doing some cleanup at the same time.
Diffstat (limited to 'im/src/lua5/imlua_image.c')
-rwxr-xr-x | im/src/lua5/imlua_image.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/im/src/lua5/imlua_image.c b/im/src/lua5/imlua_image.c index 0e8676d..dd00d87 100755 --- a/im/src/lua5/imlua_image.c +++ b/im/src/lua5/imlua_image.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_image.c,v 1.9 2010/01/17 18:18:12 scuri Exp $ + * $Id: imlua_image.c,v 1.11 2010/06/07 20:59:32 scuri Exp $ */ #include <string.h> @@ -674,7 +674,7 @@ static int imluaImageColorSpace(lua_State *L) static int imluaImageHasAlpha(lua_State *L) { imImage *im = imlua_checkimage(L, 1); - lua_pushnumber(L, im->has_alpha); + lua_pushboolean(L, im->has_alpha); return 1; } @@ -785,14 +785,14 @@ static int imluaImage_tostring (lua_State *L) if (*image_p) { imImage *image = *image_p; - lua_pushfstring(L, "imImage(%p) [width=%d,height=%d,color_space=%s,data_type=%s,depth=%d,has_alpha=%d]", + lua_pushfstring(L, "imImage(%p) [width=%d,height=%d,color_space=%s,data_type=%s,depth=%d,has_alpha=%s]", image_p, image->width, image->height, imColorModeSpaceName(image->color_space), imDataTypeName(image->data_type), image->depth, - image->has_alpha + image->has_alpha? "yes": "no" ); } else |