git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@795 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-24 15:33:19 +00:00
parent e059fae78b
commit 68495f968a

View File

@@ -82,7 +82,7 @@ static void destroy(MwWidget handle) {
} \
\
r.x = p.x - 5; \
r.y = p.y - th / 2 - 5; \
r.y = p.y + ((MwGetInteger(handle, MwNheight) - p.y * 2) - (th + 10)) / 2; \
r.width = tw + 10; \
r.height = th + 10; \
\
@@ -100,10 +100,7 @@ static void draw(MwWidget handle) {
MwDrawWidgetBack(handle, &r, base, 0, MwTRUE);
BEGIN_MENU_LOOP;
if(m->sub[i]->wsub != NULL) {
MwDrawFrame(handle, &r, base, MwFALSE);
MwDrawWidgetBack(handle, &r, base, 0, MwFALSE);
} else if(in_area && handle->pressed) {
if(m->sub[i]->wsub != NULL || (in_area && handle->pressed)) {
MwDrawFrame(handle, &r, base, MwFALSE);
MwDrawWidgetBack(handle, &r, base, 0, MwFALSE);
}