optimization
This commit is contained in:
parent
ebd238ef7d
commit
bcd2accbd1
@ -423,7 +423,7 @@ void CmfMsgs(GMsg* msg, bool torecycle)
|
|||||||
destarea = AL.AreaNoToId(a);
|
destarea = AL.AreaNoToId(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmf == MODE_FORWARD ? not AA->Areaforwarddirect() : not AA->Areacopydirect())
|
if (!torecycle && (cmf == MODE_FORWARD ? not AA->Areaforwarddirect() : not AA->Areacopydirect()))
|
||||||
destarea = AreaPick(pickstr, 6, &destarea);
|
destarea = AreaPick(pickstr, 6, &destarea);
|
||||||
|
|
||||||
if(destarea == -1) {
|
if(destarea == -1) {
|
||||||
|
@ -209,12 +209,9 @@ void GMsgList::ReadMlst(int n) {
|
|||||||
strcpy(ml->to, msg.To());
|
strcpy(ml->to, msg.To());
|
||||||
strcpy(ml->re, msg.re);
|
strcpy(ml->re, msg.re);
|
||||||
|
|
||||||
ml->colorby = GetColorName(ml->by, msg.orig, -1);
|
{ Addr zero;
|
||||||
if(AA->isnet())
|
ml->colorby = GetColorName(ml->by, msg.orig, -1);
|
||||||
ml->colorto = GetColorName(ml->to, msg.dest, -1);
|
ml->colorto = GetColorName(ml->to, AA->isnet() ? msg.dest : zero, -1);
|
||||||
else
|
|
||||||
{ Addr a;
|
|
||||||
ml->colorto = GetColorName(ml->to, a, -1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,8 +257,8 @@ void GMsgHeaderView::Paint() {
|
|||||||
|
|
||||||
window.prints(3, 0, window_color, LNG->To);
|
window.prints(3, 0, window_color, LNG->To);
|
||||||
color = ((msg->foundwhere&GFIND_TO) or msg->attr.tou()) ? highlight_color : to_color;
|
color = ((msg->foundwhere&GFIND_TO) or msg->attr.tou()) ? highlight_color : to_color;
|
||||||
{ Addr a;
|
{ Addr zero;
|
||||||
color = GetColorName(msg->To(), area->isnet() ? msg->dest : a, color);
|
color = GetColorName(msg->To(), area->isnet() ? msg->dest : zero, color);
|
||||||
}
|
}
|
||||||
window.prints(3, CFG->disphdrnameset.pos, color, buf);
|
window.prints(3, CFG->disphdrnameset.pos, color, buf);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user