leafo / magick

Lua bindings to ImageMagick for LuaJIT using FFI
401 stars 79 forks source link

Fix gravity getter and setter #34

Closed ram-nadella closed 8 years ago

ram-nadella commented 8 years ago

Lua tables start at index 1, the old code was using the table position as a way to get/set the value for gravity, which led to an off by 1 error

typedef in ImageMagick source for reference: http://git.imagemagick.org/repos/ImageMagick/blob/master/MagickCore/geometry.h#L76-89