Handle closed displays correctly. (Coverity)
2006-04-12 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkimage-x11.c (gdk_image_new_bitmap): Handle closed displays correctly. (Coverity)
This commit is contained in:
committed by
Matthias Clasen
parent
eb675a98a0
commit
b898f3379a
@@ -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)
|
||||
|
||||
@@ -158,7 +158,7 @@ _gdk_image_exit (void)
|
||||
* Return value: a new #GdkImage.
|
||||
**/
|
||||
GdkImage *
|
||||
gdk_image_new_bitmap(GdkVisual *visual, gpointer data, gint width, gint height)
|
||||
gdk_image_new_bitmap (GdkVisual *visual, gpointer data, gint width, gint height)
|
||||
{
|
||||
Visual *xvisual;
|
||||
GdkImage *image;
|
||||
@@ -184,17 +184,18 @@ gdk_image_new_bitmap(GdkVisual *visual, gpointer data, gint width, gint height)
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user