From c12f8fa2544dbcfb29416f39f784abefef276ccb Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 8 Oct 2024 19:44:20 +0200 Subject: [BOX32] Fixed some X11 function so wine launch (and added BOX64_X11SYNC to help debug X11 programs) --- src/libtools/my_x11_conv.c | 19 +++++++++++++++++++ src/libtools/my_x11_conv.h | 3 +++ 2 files changed, 22 insertions(+) (limited to 'src/libtools') diff --git a/src/libtools/my_x11_conv.c b/src/libtools/my_x11_conv.c index 7a7c1259..d0f961e2 100644 --- a/src/libtools/my_x11_conv.c +++ b/src/libtools/my_x11_conv.c @@ -965,3 +965,22 @@ void inplace_XFontStruct_enlarge(void* a) for(int i=dst->n_properties-1; i>=0; --i) convert_XFontProp_to_64(dst->properties+i, properties_s+i); } + +void convert_XSetWindowAttributes_to_64(my_XSetWindowAttributes_t* dst, my_XSetWindowAttributes_32_t* src) +{ + dst->background_pixmap = from_ulong(src->background_pixmap); + dst->background_pixel = from_ulong(src->background_pixel); + dst->border_pixmap = from_ulong(src->border_pixmap); + dst->border_pixel = from_ulong(src->border_pixel); + dst->bit_gravity = src->bit_gravity; + dst->win_gravity = src->win_gravity; + dst->backing_store = from_ulong(src->backing_store); + dst->backing_planes = from_ulong(src->backing_planes); + dst->backing_pixel = src->backing_pixel; + dst->save_under = src->save_under; + dst->event_mask = from_long(src->event_mask); + dst->do_not_propagate_mask = from_long(src->do_not_propagate_mask); + dst->override_redirect = src->override_redirect; + dst->colormap = from_ulong(src->colormap); + dst->cursor = from_ulong(src->cursor); +} \ No newline at end of file diff --git a/src/libtools/my_x11_conv.h b/src/libtools/my_x11_conv.h index ccd9e497..10b8229b 100644 --- a/src/libtools/my_x11_conv.h +++ b/src/libtools/my_x11_conv.h @@ -49,4 +49,7 @@ void inplace_XFontProp_shrink(void* a); void inplace_XFontProp_enlarge(void* a); void inplace_XFontStruct_shrink(void* a); void inplace_XFontStruct_enlarge(void* a); + +void convert_XSetWindowAttributes_to_64(my_XSetWindowAttributes_t* dst, my_XSetWindowAttributes_32_t* src); + #endif//MY_X11_CONV \ No newline at end of file -- cgit 1.4.1