better separator
This commit is contained in:
parent
509351a0a0
commit
22b4737c33
1 changed files with 4 additions and 4 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue