Hello,
Looking at this today, it seems a bit sketchy (image.c):
/** Create a new image object.
* \param L The Lua stack.
* \return The number of elements pushed on stack.
* \luastack
* \lparam The image path, or nil to create an empty image.
* \lparam The image width if nil was set as first arg.
* \lparam The image height if nil was set as first arg.
* \lreturn An image object.
*/
static int
luaA_image_new(lua_State *L)
{
const char *filename;
if((filename = lua_tostring(L, 2)))
return image_new_from_file(filename);
return 0;
}
In my slightly weak understanding, it seems like width/height are
actually ignored.
Cheers,
-AT
--
To unsubscribe, send mail to [email protected].