about summary refs log tree commit diff stats
path: root/src/libtools
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-24 21:04:50 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-24 21:04:58 +0200
commitdad0913dcbe7fd754b7d48dd06af8b93b78e95d1 (patch)
treeb404e3c6f79611e1dd2db8955ce6641e0eb63898 /src/libtools
parente5db9aa8741100bb69ba5082e28ffeaf276dfd0e (diff)
downloadbox64-dad0913dcbe7fd754b7d48dd06af8b93b78e95d1.tar.gz
box64-dad0913dcbe7fd754b7d48dd06af8b93b78e95d1.zip
[BOX32][WRAPPER] Added some more 32bits wrapped function, and fixed a few x11/glX ones too
Diffstat (limited to 'src/libtools')
-rw-r--r--src/libtools/my_x11_defs.h52
-rw-r--r--src/libtools/my_x11_defs_32.h38
2 files changed, 83 insertions, 7 deletions
diff --git a/src/libtools/my_x11_defs.h b/src/libtools/my_x11_defs.h
index 1c935a31..d03afbb3 100644
--- a/src/libtools/my_x11_defs.h
+++ b/src/libtools/my_x11_defs.h
@@ -624,13 +624,13 @@ typedef struct my_XMappingEvent_s
 
 typedef struct my_XErrorEvent_s
 {
-        int type;
-        my_XDisplay_t *display;
-        XID resourceid;
-        unsigned long serial;
-        unsigned char error_code;
-        unsigned char request_code;
-        unsigned char minor_code;
+    int type;
+    my_XDisplay_t *display;
+    XID resourceid;
+    unsigned long serial;
+    unsigned char error_code;
+    unsigned char request_code;
+    unsigned char minor_code;
 } my_XErrorEvent_t;
 
 typedef struct my_XAnyEvent_s
@@ -820,5 +820,43 @@ typedef struct my_XRROutputInfo_s {
     XID             *modes;
 } my_XRROutputInfo_t;
 
+// Window Attribute
+typedef struct my_XWindowAttributes_s {
+    int x, y;
+    int width, height;
+    int border_width;
+    int depth;
+    void* visual;   //Visual*
+    XID root;
+    int c_class;
+    int bit_gravity;
+    int win_gravity;
+    int backing_store;
+    unsigned long backing_planes;
+    unsigned long backing_pixel;
+    int save_under;
+    XID colormap;
+    int map_installed;
+    int map_state;
+    long all_event_masks;
+    long your_event_mask;
+    long do_not_propagate_mask;
+    int override_redirect;
+    void* screen;   //Screen*
+} my_XWindowAttributes_t;
+
+typedef struct my_XVisualInfo_s {
+  void* visual; //Visual*
+  unsigned long  visualid;
+  int screen;
+  int depth;
+  int c_class;
+  unsigned long red_mask;
+  unsigned long green_mask;
+  unsigned long blue_mask;
+  int colormap_size;
+  int bits_per_rgb;
+} my_XVisualInfo_t;
+
 
 #endif//MY_X11_DEFS
\ No newline at end of file
diff --git a/src/libtools/my_x11_defs_32.h b/src/libtools/my_x11_defs_32.h
index c0fda3f6..f4d93084 100644
--- a/src/libtools/my_x11_defs_32.h
+++ b/src/libtools/my_x11_defs_32.h
@@ -755,4 +755,42 @@ typedef struct my_XRROutputInfo_32_s {
     ptr_t           modes; //XID_32*
 } my_XRROutputInfo_32_t;
 
+typedef struct my_XWindowAttributes_32_s {
+    int x, y;
+    int width, height;
+    int border_width;
+    int depth;
+    ptr_t visual;   //Visual*
+    XID_32 root;
+    int c_class;
+    int bit_gravity;
+    int win_gravity;
+    int backing_store;
+    ulong_t backing_planes;
+    ulong_t backing_pixel;
+    int save_under;
+    XID_32 colormap;
+    int map_installed;
+    int map_state;
+    long_t all_event_masks;
+    long_t your_event_mask;
+    long_t do_not_propagate_mask;
+    int override_redirect;
+    ptr_t screen;   //Screen*
+} my_XWindowAttributes_32_t;
+
+typedef struct my_XVisualInfo_32_s {
+  ptr_t visual; //Visual*
+  ulong_t visualid;
+  int screen;
+  int depth;
+  int c_class;
+  ulong_t red_mask;
+  ulong_t green_mask;
+  ulong_t blue_mask;
+  int colormap_size;
+  int bits_per_rgb;
+} my_XVisualInfo_32_t;
+
+
 #endif//MY_X11_DEFS_32
\ No newline at end of file