diff options
author | marha <marha@users.sourceforge.net> | 2012-07-09 09:23:11 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-07-09 09:23:11 +0200 |
commit | 75f57cf199b6c042b0f7515e3a1ab80f7ccecfab (patch) | |
tree | e0cc528599b191887512be9d04fd5a16e8d86f26 /libX11/src/CrPFBData.c | |
parent | adab311edf18f4123f03cfa52424e4de29f4380b (diff) | |
download | vcxsrv-75f57cf199b6c042b0f7515e3a1ab80f7ccecfab.tar.gz vcxsrv-75f57cf199b6c042b0f7515e3a1ab80f7ccecfab.tar.bz2 vcxsrv-75f57cf199b6c042b0f7515e3a1ab80f7ccecfab.zip |
Solved compilation errors
Diffstat (limited to 'libX11/src/CrPFBData.c')
-rw-r--r-- | libX11/src/CrPFBData.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/libX11/src/CrPFBData.c b/libX11/src/CrPFBData.c index 17d551bb7..a736b9b84 100644 --- a/libX11/src/CrPFBData.c +++ b/libX11/src/CrPFBData.c @@ -60,8 +60,10 @@ Pixmap XCreatePixmapFromBitmapData( { Pixmap pix = XCreatePixmap(display, d, width, height, depth); XGCValues gcv = { - .foreground = fg, - .background = bg + /*.function =*/ 0, + /*.plane_mask =*/ 0, + /*.foreground =*/ fg, + /*.background =*/ bg }; GC gc = XCreateGC(display, pix, GCForeground|GCBackground, &gcv); if (gc == NULL) { @@ -69,18 +71,18 @@ Pixmap XCreatePixmapFromBitmapData( return (Pixmap) None; } else { XImage ximage = { - .height = height, - .width = width, - .depth = 1, - .bits_per_pixel = 1, - .xoffset = 0, - .format = XYBitmap, - .data = 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 =*/ XYBitmap, + /*.data =*/ 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); |