mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 01:49:47 +00:00
fix submenu
This commit is contained in:
@@ -116,6 +116,10 @@ static void click(MwWidget handle) {
|
|||||||
int th = MwTextHeight(handle, menu->sub[i]->name);
|
int th = MwTextHeight(handle, menu->sub[i]->name);
|
||||||
rc.height = th;
|
rc.height = th;
|
||||||
|
|
||||||
|
if(strcmp(menu->sub[i]->name, "----") == 0) {
|
||||||
|
rc.height = MwDefaultBorderWidth(handle) * 2 - 1;
|
||||||
|
}
|
||||||
|
|
||||||
if(rc.y <= handle->mouse_point.y && handle->mouse_point.y <= (int)(rc.y + rc.height)) {
|
if(rc.y <= handle->mouse_point.y && handle->mouse_point.y <= (int)(rc.y + rc.height)) {
|
||||||
if(menu->sub[i]->wsub == NULL && arrlen(menu->sub[i]->sub) > 0) {
|
if(menu->sub[i]->wsub == NULL && arrlen(menu->sub[i]->sub) > 0) {
|
||||||
MwPoint p;
|
MwPoint p;
|
||||||
|
|||||||
Reference in New Issue
Block a user