Fixed ImageData:mapPixel again, for non-JIT platforms this time.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-05-21 15:24:11 -03:00
parent 963b4c4447
commit 4666d83beb
+4 -4
View File
@@ -165,10 +165,10 @@ int w_ImageData__mapPixelUnsafe(lua_State *L)
lua_pushnumber(L, x);
lua_pushnumber(L, y);
pixel c = t->getPixel(x, y);
lua_pushnumber(L, c.r);
lua_pushnumber(L, c.g);
lua_pushnumber(L, c.b);
lua_pushnumber(L, c.a);
lua_pushnumber(L, c.r / 255.0);
lua_pushnumber(L, c.g / 255.0);
lua_pushnumber(L, c.b / 255.0);
lua_pushnumber(L, c.a / 255.0);
lua_call(L, 6, 4);
// If we used luaL_checkX / luaL_optX then we would get messy error