forked from AuroraMiddleware/gtk
Fix another Coverity bug
This commit is contained in:
parent
340e710fc3
commit
10e0b3c8e1
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
@ -1,5 +1,8 @@
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user