Re: [PATCH]gdk_pixbuf_composite in GDK_INTERP_NEAREST mode



OKADA Mitsuru <m-okada fjb co jp> writes:

> In GDK_INTERP_NEAREST mode, gdk_pixbuf_composte function 
> does't work correctly. In pixops_composite_nearest function,
> during processing toward  x axis, 'src' pointer is fixed. 
> So It use 'p' pointer, alternately. 

Wow, good catch!

Thanks a lot for the patch.  I have applied it to the gdk-pixbuf
module.

In addition, I have replaced the compositing code in
pixops_composite_color_nearest() for something saner.  This cures the
problem where checks where showing through, even on images with no
alpha.

> GTK 2.0's gdk-pixbuf has this problem, too.

I guess the GTK+ maintainers will want to merge the changes in.  There
still are some things that need to be merged either way.

  Federico




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]