mask image for x11

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@348 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-16 05:54:43 +00:00
parent 3ca9b48958
commit ac1e102dee
3 changed files with 80 additions and 85 deletions

View File

@@ -620,7 +620,7 @@ MwLLPixmap MwLoadRaw(MwWidget handle, unsigned char* rgb, int width, int height)
MwLLFreeColor(bg);
px = MwLLCreatePixmap(handle->lowlevel, out, width, height);
px = MwLLCreatePixmap(handle->lowlevel, rgb, width, height);
free(out);
@@ -715,7 +715,7 @@ MwLLPixmap MwLoadXPMEx(MwWidget handle, char** data, unsigned char* bgcolor) {
return px;
}
MwLLPixmap MwLoadXPM(MwWidget handle, char** data){
MwLLPixmap MwLoadXPM(MwWidget handle, char** data) {
unsigned char rgba[4];
memset(rgba, 0, 4);