polarfox

Register max_width to png format

Jul 8th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.53 KB | None | 0 0
  1. diff --git a/src/imageio/format/png.c b/src/imageio/format/png.c
  2. index 719af59..af067b5 100644
  3. --- a/src/imageio/format/png.c
  4. +++ b/src/imageio/format/png.c
  5. @@ -406,6 +406,7 @@ void init(dt_imageio_module_format_t *self)
  6.  #ifdef USE_LUA
  7.    luaA_struct(darktable.lua_state,dt_imageio_png_t);
  8.    dt_lua_register_module_member(darktable.lua_state,self,dt_imageio_png_t,bpp,int);
  9. +  dt_lua_register_module_member(darktable.lua_state,self,dt_imageio_png_t,max_width,int);
  10.  #endif
  11.  }
  12.  void cleanup(dt_imageio_module_format_t *self) {}
Advertisement
Add Comment
Please, Sign In to add comment