add MwNborderWidth

This commit is contained in:
NishiOwO
2025-12-07 05:32:58 +09:00
parent 14cf131528
commit a0b3ecb697
5 changed files with 15 additions and 4 deletions

View File

@@ -131,8 +131,12 @@ void MwDrawFrame(MwWidget handle, MwRect* rect, MwLLColor color, int invert) {
} else {
int diff = get_color_diff(handle) / 3 * 2;
MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) / 2, -diff, (handle->parent == NULL || handle->parent->lowlevel == NULL) ? 1 : 0);
MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) / 2, diff, 0);
if(MwDefaultBorderWidth(handle) >= 2) {
MwDrawFrameEx(handle, rect, color, invert, MwDefaultBorderWidth(handle) - 1, -diff, (handle->parent == NULL || handle->parent->lowlevel == NULL) ? 1 : 0);
MwDrawFrameEx(handle, rect, color, invert, 1, diff, 0);
} else {
MwDrawFrameEx(handle, rect, color, invert, 1, 0, 0);
}
}
}