git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@737 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-16 00:42:37 +00:00
parent bcd14afebf
commit 24ff5ce956

View File

@@ -20,11 +20,11 @@ static void draw(MwWidget handle) {
MwDrawRect(handle, &r, base);
if(MwGetInteger(handle, MwNorientation) == MwVERTICAL) {
r.x = (r.width - MwDefaultBorderWidth(handle) * 2) / 2;
r.width = MwDefaultBorderWidth(handle) * 2;
r.x = (r.width - 2) / 2;
r.width = 2;
} else if(MwGetInteger(handle, MwNorientation) == MwHORIZONTAL) {
r.y = (r.height - MwDefaultBorderWidth(handle) * 2) / 2;
r.height = MwDefaultBorderWidth(handle) * 2;
r.y = (r.height - 2) / 2;
r.height = 2;
}
MwDrawFrameEx(handle, &r, base, 1, 1, 0);