diff options
Diffstat (limited to 'libX11/src/CrBFData.c')
-rw-r--r-- | libX11/src/CrBFData.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libX11/src/CrBFData.c b/libX11/src/CrBFData.c index 6708a9b91..b5c4c30b6 100644 --- a/libX11/src/CrBFData.c +++ b/libX11/src/CrBFData.c @@ -60,18 +60,18 @@ Pixmap XCreateBitmapFromData( return (Pixmap) None; } else { XImage ximage = { - .height = height, - .width = width, - .depth = 1, - .bits_per_pixel = 1, - .xoffset = 0, - .format = XYPixmap, - .data = (char *) data, - .byte_order = LSBFirst, - .bitmap_unit = 8, - .bitmap_bit_order = LSBFirst, - .bitmap_pad = 8, - .bytes_per_line = (width + 7) / 8, + /*.width =*/ width, + /*.height =*/ height, + /*.xoffset =*/ 0, + /*.format =*/ XYPixmap, + /*.data =*/ (char *) data, + /*.byte_order =*/ LSBFirst, + /*.bitmap_unit =*/ 8, + /*.bitmap_bit_order =*/ LSBFirst, + /*.bitmap_pad =*/ 8, + /*.depth =*/ 1, + /*.bytes_per_line =*/ (width + 7) / 8, + /*.bits_per_pixel =*/ 1 }; XPutImage(display, pix, gc, &ximage, 0, 0, 0, 0, width, height); XFreeGC(display, gc); |