oops
This commit is contained in:
parent
c7c8f236b0
commit
a824b4fc44
1 changed files with 3 additions and 1 deletions
|
|
@ -29,7 +29,9 @@ static void draw(MwWidget handle) {
|
||||||
r.height = MwGetInteger(handle, MwNheight);
|
r.height = MwGetInteger(handle, MwNheight);
|
||||||
|
|
||||||
if(MwGetInteger(handle, MwNflat)) {
|
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);
|
MwDrawWidgetBack(handle, &r, base, handle->pressed, 1);
|
||||||
} else {
|
} else {
|
||||||
MwDrawRect(handle, &r, base);
|
MwDrawRect(handle, &r, base);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue