mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 16:10:50 +00:00
better separator
This commit is contained in:
@@ -54,11 +54,11 @@ static void draw(MwWidget handle) {
|
||||
rc.x = MwDefaultBorderWidth(handle) * 2;
|
||||
rc.y = p.y;
|
||||
rc.width = r.width - (rc.x * 2);
|
||||
rc.height = MwDefaultBorderWidth(handle) * 2;
|
||||
rc.height = 2;
|
||||
|
||||
MwDrawFrame(handle, &rc, base, 1);
|
||||
MwDrawFrameEx(handle, &rc, base, 1, 1, 0, 0);
|
||||
|
||||
p.y += MwDefaultBorderWidth(handle) * 2 + 1;
|
||||
p.y += 2 + 1;
|
||||
} else {
|
||||
int tw = MwTextWidth(handle, menu->sub[i]->name);
|
||||
int th = MwTextHeight(handle, menu->sub[i]->name);
|
||||
@@ -117,7 +117,7 @@ static void click(MwWidget handle) {
|
||||
rc.height = th;
|
||||
|
||||
if(strcmp(menu->sub[i]->name, "----") == 0) {
|
||||
rc.height = MwDefaultBorderWidth(handle) * 2 - 1;
|
||||
rc.height = 2 - 1;
|
||||
}
|
||||
|
||||
if(rc.y <= handle->mouse_point.y && handle->mouse_point.y <= (int)(rc.y + rc.height)) {
|
||||
|
||||
Reference in New Issue
Block a user