summaryrefslogtreecommitdiff
path: root/src/lua5/imlua_file.c
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-04 21:35:15 +0000
committerscuri <scuri>2009-08-04 21:35:15 +0000
commit08e5c41d42be826c18480b277f644a864f237b9b (patch)
treecf666b0bb0f2d38b2f650751adb081b6f2d60af3 /src/lua5/imlua_file.c
parent26990cb2d1f55272c6f1d09dcc0f3062dc1e6cf8 (diff)
*** empty log message ***
Diffstat (limited to 'src/lua5/imlua_file.c')
-rw-r--r--src/lua5/imlua_file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua5/imlua_file.c b/src/lua5/imlua_file.c
index fd20c36..066dd76 100644
--- a/src/lua5/imlua_file.c
+++ b/src/lua5/imlua_file.c
@@ -2,7 +2,7 @@
* \brief IM Lua 5 Binding
*
* See Copyright Notice in im_lib.h
- * $Id: imlua_file.c,v 1.1 2008/10/17 06:16:32 scuri Exp $
+ * $Id: imlua_file.c,v 1.2 2009/08/04 21:35:26 scuri Exp $
*/
#include <string.h>
@@ -542,20 +542,20 @@ static int imluaFileWriteImageInfo (lua_State *L)
}
/*****************************************************************************\
- file:imFileReadImageData(data)
+ file:ReadImageData(data)
\*****************************************************************************/
static int imluaFileReadImageData (lua_State *L)
{
imFile *ifile = imlua_checkfile(L, 1);
void* data = lua_touserdata(L, 2);
- int convert2bitmap = luaL_checkint(L, 3);
+ int convert2bitmap = lua_toboolean(L, 3);
int color_mode_flags = luaL_checkint(L, 4);
imlua_pusherror(L, imFileReadImageData(ifile, data, convert2bitmap, color_mode_flags));
return 1;
}
/*****************************************************************************\
- file:imFileWriteImageData(data)
+ file:WriteImageData(data)
\*****************************************************************************/
static int imluaFileWriteImageData (lua_State *L)
{