using latest love-android @ changeset 8659be0e75a3

This commit is contained in:
fysx
2014-05-25 16:05:26 +02:00
parent 1d29da2d80
commit 49265f0596
58 changed files with 2008 additions and 366 deletions
@@ -113,10 +113,10 @@ int w_Canvas_clear(lua_State *L)
int w_Canvas_getFormat(lua_State *L)
{
Canvas *canvas = luax_checkcanvas(L, 1);
Texture::Format format = canvas->getTextureFormat();
Canvas::Format format = canvas->getTextureFormat();
const char *str;
if (!Texture::getConstant(format, str))
return luaL_error(L, "Unknown texture format.");
if (!Canvas::getConstant(format, str))
return luaL_error(L, "Unknown Canvas format.");
lua_pushstring(L, str);
return 1;