This commit is contained in:
Nishi 2025-12-21 23:04:53 +09:00
commit a824b4fc44
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -29,7 +29,9 @@ static void draw(MwWidget handle) {
r.height = MwGetInteger(handle, MwNheight);
if(MwGetInteger(handle, MwNflat)) {
if(handle->pressed) {
int inv;
if(handle->pressed || ((inv = MwGetInteger(handle, MwNforceInverted)) != MwDEFAULT && inv)) {
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
} else {
MwDrawRect(handle, &r, base);