Renamed CompressedData:getNumMipmaps to CompressedData:getMipmapCount; Improved type-checking error messages for some functions which expect function arguments

This commit is contained in:
Alex Szpakowski
2013-05-02 17:26:50 -04:00
parent 77c6efd8fd
commit 3bf43dadd8
14 changed files with 43 additions and 44 deletions
+1 -2
View File
@@ -101,8 +101,7 @@ int w_ImageData_mapPixel(lua_State *L)
{
ImageData *t = luax_checkimagedata(L, 1);
if (!lua_isfunction(L, 2))
return luaL_error(L, "Function expected");
luaL_checktype(L, 2, LUA_TFUNCTION);
int w = t->getWidth();
int h = t->getHeight();