From c7c8f236b048deb30987356805c9a0f560cb2383 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 21 Dec 2025 23:03:33 +0900 Subject: [PATCH] yes --- include/Mw/StringDefs.h | 1 + milsko.xml | 2 ++ src/draw.c | 3 +++ 3 files changed, 6 insertions(+) diff --git a/include/Mw/StringDefs.h b/include/Mw/StringDefs.h index afcbedcb..6588be2d 100644 --- a/include/Mw/StringDefs.h +++ b/include/Mw/StringDefs.h @@ -38,6 +38,7 @@ #define MwNbitmapFont "IbitmapFont" #define MwNsevenSegment "IsevenSegment" #define MwNlength "Ilength" +#define MwNforceInverted "IforceInverted" #define MwNtitle "Stitle" #define MwNtext "Stext" diff --git a/milsko.xml b/milsko.xml index f60f7c79..756e4f14 100644 --- a/milsko.xml +++ b/milsko.xml @@ -52,6 +52,7 @@ - MwNratio - MwNfixedSize - MwNbitmapFont + - MwNforceInverted Integer properties must be prefixed with I. String properties must be prefixed with S. @@ -91,6 +92,7 @@ + diff --git a/src/draw.c b/src/draw.c index d1f3c789..4286d669 100644 --- a/src/draw.c +++ b/src/draw.c @@ -131,6 +131,9 @@ void MwDrawRectFading(MwWidget handle, MwRect* rect, MwLLColor color) { } void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) { + int inv; + + if((inv = MwGetInteger(handle, MwNforceInverted)) != MwDEFAULT && inv) invert = 1; if(MwGetInteger(handle, MwNmodernLook)) { MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle), 0, 0); } else {