mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Renamed CompressedData:getNumMipmaps to CompressedData:getMipmapCount; Improved type-checking error messages for some functions which expect function arguments
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user