diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index c7c6c5cca6..db734ef631 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -292,7 +292,7 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count) * to send the rest of the buffer. */ - if (retval && (priv->buf_offset + count) >= 128) { + if (retval && (priv->buf_offset + count) > 128) { retval = (* priv->image_module->load_increment) ( priv->context, buf, diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 38080c8e49..7e19014d49 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -216,7 +216,7 @@ myInputFunc (GifFileType *type, GifByteType *byte, int length) { GifData *context; - context = (GifData *) type->UserData; + context = (GifData *) (type->UserData); g_print ("in myInputFunc\nSize requested is %d\n", length); if (length > context->size - context->ptr) { diff --git a/gdk/gdkpixbuf-render.c b/gdk/gdkpixbuf-render.c index 87f508c40b..312f4b1833 100644 --- a/gdk/gdkpixbuf-render.c +++ b/gdk/gdkpixbuf-render.c @@ -168,9 +168,9 @@ gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf, GdkDrawable *drawable, /* Sigh, GdkRGB does not have gdk_draw_rgb_32_image_dithalign(), so we * have to pack the buffer first. */ - if (apb->has_alpha) - buf = remove_alpha (apb, src_x, src_y, width, height, &rowstride); - else { + if (apb->has_alpha) { +// buf = remove_alpha (apb, src_x, src_y, width, height, &rowstride); + } else { buf = apb->pixels + src_y * apb->rowstride + src_x * 3; rowstride = apb->rowstride; } diff --git a/gtk/gdk-pixbuf-loader.c b/gtk/gdk-pixbuf-loader.c index c7c6c5cca6..db734ef631 100644 --- a/gtk/gdk-pixbuf-loader.c +++ b/gtk/gdk-pixbuf-loader.c @@ -292,7 +292,7 @@ gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count) * to send the rest of the buffer. */ - if (retval && (priv->buf_offset + count) >= 128) { + if (retval && (priv->buf_offset + count) > 128) { retval = (* priv->image_module->load_increment) ( priv->context, buf,