mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 06:48:46 +00:00
fixed a stupid bug
This commit is contained in:
parent
ce783e6a9f
commit
762e3d0f92
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user