fixed a stupid bug

This commit is contained in:
vane11ope 2018-08-12 18:36:51 +09:00 committed by radare
parent ce783e6a9f
commit 762e3d0f92

View File

@ -770,17 +770,18 @@ static void resizePanelLeft(RPanels *panels) {
continue;
}
RPanel *p = &panel[i];
tx0 = p->x + p->w - 1;
tx0 = p->x;
tx1 = p->x + p->w - 1;
ty0 = p->y;
ty1 = p->y + p->h - 1;
if (tx0 == cx0 && ty0 == cy0 && ty1 == cy1) {
if (tx1 == cx0 && ty0 == cy0 && ty1 == cy1) {
isResized = true;
p->w -= PANEL_CONFIG_RESIZE_W;
p->refresh = true;
break;
} else if (tx0 == cx0) {
} else if (tx1 == cx0) {
targets1[cur1++] = p;
} else if (tx0 == cx1) {
} else if (tx0 == cx0) {
targets2[cur2++] = p;
}
}
@ -859,17 +860,18 @@ static void resizePanelRight(RPanels *panels) {
continue;
}
RPanel *p = &panel[i];
tx0 = p->x + p->w - 1;
tx0 = p->x;
tx1 = p->x + p->w - 1;
ty0 = p->y;
ty1 = p->y + p->h - 1;
if (tx0 == cx0 && ty0 == cy0 && ty1 == cy1) {
if (tx1 == cx0 && ty0 == cy0 && ty1 == cy1) {
isResized = true;
p->w += PANEL_CONFIG_RESIZE_W;
p->refresh = true;
break;
} else if (tx0 == cx0) {
} else if (tx1 == cx0) {
targets1[cur1++] = p;
} else if (tx0 == cx1) {
} else if (tx0 == cx0) {
targets2[cur2++] = p;
}
}