better alpha blending
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
Nishi 2026-09-26 18:32:30 +09:00
commit 0320cd64eb
21 changed files with 170 additions and 87 deletions

View file

@ -184,6 +184,12 @@ MWDECL unsigned char* MWAPI MwPixmapGetRaw(MwLLPixmap pixmap);
*/
MWDECL void MWAPI MwPixmapGetSize(MwLLPixmap pixmap, MwRect* rect);
/*!
* @brief Destroys the pixmap
* @param pixmap Pixmap
*/
MWDECL void MWAPI MwDestroyPixmap(MwLLPixmap pixmap);
/*!
* @brief Creates a pixmap from XPM data
* @param handle Widget

View file

@ -34,7 +34,7 @@ enum MwLLBackends {
};
struct _MwLLCommon {
void* user;
void* internal;
int copy_buffer;
int type;
int coordinate_type;
@ -58,7 +58,8 @@ struct _MwLLCommonPixmap {
int width;
int height;
unsigned char* raw;
void* user;
unsigned char* before_blend;
void* internal;
};
#ifdef USE_DBUS

View file

@ -99,11 +99,14 @@ struct _MwWidget {
int prop_event;
int held;
void* internal;
void* opaque;
void* user;
void (*draw_inject)(MwWidget handle);
void (*destroy_inject)(MwWidget handle);
void* internal;
void* opaque;
void* user;
MwHandler draw_inject;
MwHandler destroy_inject;
MwHandlerProp prop_inject_pixmap; /* this is for pixmap; do not use */
MwLLPixmap* pixmaps;
MwIntegerKeyValue* integer;
MwTextKeyValue* text;