mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 02:13:29 +00:00
forgor
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@737 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user