now works with 16bpp display

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@323 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-14 13:09:15 +00:00
parent 27bf409a88
commit ccc06bca4b
2 changed files with 84 additions and 43 deletions

View File

@@ -14,16 +14,17 @@
#include <X11/extensions/Xrender.h>
struct _MwLL {
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
void* user;
Atom wm_delete;
int copy_buffer;
XIM xim;
XIC xic;
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
void* user;
Atom wm_delete;
int copy_buffer;
XIM xim;
XIC xic;
XVisualInfo* visual;
unsigned int width;
unsigned int height;
@@ -43,6 +44,8 @@ struct _MwLLPixmap {
int height;
unsigned char* data;
int depth;
int use_shm;
int use_render;
XShmSegmentInfo shm;