Commit 10e0b3c8 authored by Matthias Clasen's avatar Matthias Clasen

Fix another Coverity bug

parent 340e710f
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
closed displays correctly. (Coverity)
* contrib/gdk-pixbuf-xlib/Makefile.am:
* modules/engines/pixbuf/Makefile.am
* gdk-pixbuf/Makefile.am: Build fixes for Cygwin. (#338262)
......
2006-04-12 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle
closed displays correctly. (Coverity)
* contrib/gdk-pixbuf-xlib/Makefile.am:
* modules/engines/pixbuf/Makefile.am
* gdk-pixbuf/Makefile.am: Build fixes for Cygwin. (#338262)
......
......@@ -160,17 +160,17 @@ gdk_image_new_bitmap (GdkVisual *visual,
private->ximage = XCreateImage (GDK_SCREEN_XDISPLAY (private->screen),
xvisual, 1, XYBitmap,
0, NULL, width, height, 8, 0);
private->ximage->data = data;
private->ximage->bitmap_bit_order = MSBFirst;
private->ximage->byte_order = MSBFirst;
}
private->ximage->data = data;
private->ximage->bitmap_bit_order = MSBFirst;
private->ximage->byte_order = MSBFirst;
image->byte_order = MSBFirst;
image->mem = private->ximage->data;
image->bpl = private->ximage->bytes_per_line;
image->bpp = 1;
return(image);
} /* gdk_image_new_bitmap() */
return image;
}
void
_gdk_windowing_image_init (GdkDisplay *display)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment