forgor
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@737 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
bcd14afebf
commit
24ff5ce956
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue