update color things

This commit is contained in:
NishiOwO
2025-12-15 06:48:40 +09:00
parent f9c0ec987e
commit cf4fdc531a
5 changed files with 4763 additions and 836 deletions

View File

@@ -580,7 +580,7 @@ static void MwLLSetTitleImpl(MwLL handle, const char* title) {
}
static MwLLPixmap MwLLCreatePixmapImpl(MwLL handle, unsigned char* data, int width, int height) {
MwLLPixmap r = malloc(sizeof(*r));
MwLLPixmap r = malloc(sizeof(*r));
int evbase, erbase;
XWindowAttributes attr;
@@ -605,7 +605,7 @@ static MwLLPixmap MwLLCreatePixmapImpl(MwLL handle, unsigned char* data, int wid
r->x11.mask = XCreateImage(handle->x11.display, DefaultVisual(handle->x11.display, DefaultScreen(handle->x11.display)), 1, ZPixmap, 0, NULL, width, height, 32, 0);
r->x11.image->data = malloc(r->x11.image->bytes_per_line * height);
r->x11.mask->data = malloc(r->x11.mask->bytes_per_line * height);
r->x11.mask->data = malloc(r->x11.mask->bytes_per_line * height);
MwLLPixmapUpdate(r);
return r;