Permalink
Browse files

sizeof(unsigned char)

  • Loading branch information...
LBPHacker authored and jacob1 committed Dec 4, 2016
1 parent 5cf3fa3 commit e9d80fe52ab9a594b50b346131190efce378a98b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lua/LuaScriptInterface.cpp
@@ -1982,7 +1982,7 @@ int LuaScriptInterface::simulation_brush(lua_State * l)
lua_pushnumber(l, sizeY);
lua_pushnumber(l, 0);
lua_pushnumber(l, 0);
int bitmapSize = sizeX * sizeY;
int bitmapSize = sizeX * sizeY * sizeof(unsigned char);
void *bitmapCopy = lua_newuserdata(l, bitmapSize);
memcpy(bitmapCopy, brushList[brushID]->GetBitmap(), bitmapSize);
brushList[brushID]->SetRadius(tempRadius);

0 comments on commit e9d80fe

Please sign in to comment.