simple composite of gdk_pixbuf_composite produce strange result, the BUG?



Hi,

Attached please find the code and the error png files...
I mean it maybe a bug of gdk_pixbuf_composite.

The GTK+ version is 2.12.5.

Code snip:

static void expose_cb(GtkWidget *widget, GdkEventExpose *event)
{
        gdk_pixbuf_composite(pixbuf_icon1, pixbuf1,
                        0, 0,
                        480, 272,
                        100.0, 100.0,
                        1.0, 1.0,
                        GDK_INTERP_NEAREST,
                        255);

        gdk_draw_pixbuf(GDK_DRAWABLE(widget->window),
widget->style->fg_gc[GTK_STATE_NORMAL],
                        pixbuf1,
                        0, 0,
                        0, 0,
                        WIDTH, HEIGHT,
                        GDK_RGB_DITHER_NONE,
                        0, 0);

        return;
}


Thanks.
Bin

Attachment: simpler.tgz
Description: GNU Zip compressed data



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