fix border

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@710 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-14 16:14:01 +00:00
parent 77c73e4f01
commit dffb4ca643
3 changed files with 9 additions and 5 deletions

View File

@@ -4,6 +4,8 @@
static int create(MwWidget handle) {
MwSetDefault(handle);
MwSetInteger(handle, MwNhasBorder, 0);
return 0;
}
@@ -11,11 +13,9 @@ static void draw(MwWidget handle) {
MwRect fr;
MwRect rr;
MwLLColor base = MwParseColor(handle, MwGetText(handle, MwNbackground));
int hasBorder = MwGetInteger(handle, MwnhasBorder);
int inverted;
if(hasBorder) {
if(MwGetInteger(handle, MwNhasBorder)) {
inverted = MwGetInteger(handle, MwNinverted);
fr.x = 0;
fr.y = 0;