mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-15 22:03:29 +00:00
better
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@164 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -22,7 +22,9 @@ static void draw(MwWidget handle) {
|
||||
|
||||
rt = r;
|
||||
rt.height = rt.width;
|
||||
MwDrawTriangle(handle, &r, base, 0, MwNORTH);
|
||||
MwDrawTriangle(handle, &rt, base, 0, MwNORTH);
|
||||
rt.y = r.y + r.height - rt.height;
|
||||
MwDrawTriangle(handle, &rt, base, 0, MwSOUTH);
|
||||
|
||||
MwLLFreeColor(dark);
|
||||
MwLLFreeColor(base);
|
||||
|
||||
@@ -67,20 +67,13 @@ static void draw(MwWidget handle) {
|
||||
MwDrawText(handle, &p, menu->sub[i]->name, 1, text);
|
||||
|
||||
if(arrlen(menu->sub[i]->sub) > 0) {
|
||||
MwPoint pl[3];
|
||||
MwRect tr;
|
||||
|
||||
p.x = 5 + tw + 10;
|
||||
tr.x = p.x + tw / 2 + 5;
|
||||
tr.y = p.y - th / 2 + 2;
|
||||
tr.width = tr.height = 11;
|
||||
|
||||
pl[0].x = p.x - 5;
|
||||
pl[0].y = p.y - th / 2;
|
||||
|
||||
pl[1].x = p.x - 5;
|
||||
pl[1].y = p.y + th / 2;
|
||||
|
||||
pl[2].x = p.x + 5;
|
||||
pl[2].y = p.y;
|
||||
|
||||
MwLLPolygon(handle->lowlevel, pl, 3, text);
|
||||
MwDrawTriangle(handle, &tr, base, menu->sub[i]->wsub != NULL ? 1 : 0, MwEAST);
|
||||
}
|
||||
|
||||
p.y += th / 2 + 3;
|
||||
|
||||
Reference in New Issue
Block a user