Re: More problems with gdk-pixbuf [UPDATE]



Thanx Jeff, it works now. Here is the patch for the package, if anyone
can please commit it (unless this is the wrong solution).


cvs server: Diffing .
Index: gdk-pixbuf-util.c
===================================================================
RCS file: /cvs/gnome/gdk-pixbuf/gdk-pixbuf/gdk-pixbuf-util.c,v
retrieving revision 1.6
diff -r1.6 gdk-pixbuf-util.c
129,130c129
< 			  (double) (dest_x - src_x),
< 			  (double) (dest_y - src_y),
---
> 			  0, 0,
cvs server: Diffing pixops


> > I did some more experimenting: I replaced the copy_area function with
> > its contents in the source, which is:
> > 
> >                         gdk_pixbuf_scale(title, display,
> >                                          i * 8, j * 8,
> >                                          gdk_pixbuf_get_width(title),
> >                                          gdk_pixbuf_get_height(title),
> >                                          i * 8, j * 8, 1, 1,
> >                                          GDK_INTERP_NEAREST);
> > 
> 
> This is also updating the x and y offsets. If you were to call it as
>  gdk_pixbuf_scale(title, display,
>   i * 8, j * 8,
>   gdk_pixbuf_get_width(title),
>   gdk_pixbuf_get_height(title),
>   0, 0, 1, 1,
>   GDK_INTERP_NEAREST);
> it works fine.
> 
> I don't know whether the offsets should be set at all by
> gdk_pixbuf_copy_area. A bug?
> 
> Jeff Grollo


/-------------------------------------------------------------------\
|   LOBAN AMAAN RAHMAN  <-- anagram of -->  AHA! AN ABNORMAL MAN!   |
|  MSC #763, Caltech, Pasadena, CA 91126, USA. Tel: 1-626-395-1407  |
|     loban@earthling.net, loban@caltech.edu, http://i.am/loban     |
\-------------------------------------------------------------------/




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