From 9900051647f18117f648dd6fdac5804a4c5ec6fe Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 21 May 2016 22:18:12 +0000 Subject: [PATCH] Improved performance of ImageData:mapPixel when JIT compilation is unavailable (e.g. on iOS and Android) --- src/modules/image/wrap_ImageData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/image/wrap_ImageData.cpp b/src/modules/image/wrap_ImageData.cpp index e362d92ad..4d1ec0070 100644 --- a/src/modules/image/wrap_ImageData.cpp +++ b/src/modules/image/wrap_ImageData.cpp @@ -164,7 +164,7 @@ int w_ImageData__mapPixelUnsafe(lua_State *L) lua_pushvalue(L, 2); lua_pushnumber(L, x); lua_pushnumber(L, y); - pixel c = t->getPixel(x, y); + pixel c = t->getPixelUnsafe(x, y); lua_pushnumber(L, c.r); lua_pushnumber(L, c.g); lua_pushnumber(L, c.b);