This commit is contained in:
Nishi 2025-12-11 00:50:50 +09:00
commit e57f3fd910
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 6 additions and 0 deletions

View file

@ -17,6 +17,7 @@ static void draw(MwWidget handle) {
MwLLColor text = MwParseColor(handle, MwGetText(handle, MwNforeground));
const char* str = MwGetText(handle, MwNtext);
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
MwLLPixmap bgpx = MwGetVoid(handle, MwNbackgroundPixmap);
if(str == NULL) str = "";
@ -34,6 +35,9 @@ static void draw(MwWidget handle) {
} else {
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
}
if(bgpx != NULL) {
MwLLDrawPixmap(handle->lowlevel, &r, bgpx);
}
if(MwGetInteger(handle, MwNflat) && !handle->pressed) {
r.x += MwDefaultBorderWidth(handle);
r.y += MwDefaultBorderWidth(handle);