Fix empty background coloring right/below of text lines

This commit is contained in:
Siarzhuk Zharski 2013-01-28 21:40:14 +01:00
parent b9b805689e
commit 238b435a8e

View File

@ -1224,11 +1224,14 @@ TermView::Draw(BRect updateRect)
SetHighColor(fSelectBackColor);
FillRect(rect);
} else {
rgb_color rgb_back = fTextBackColor;
int lineIndexInHistory = j + fTextBuffer->HistorySize();
uint32 backcolor = IS_BACKCOLOR(fVisibleTextBuffer->GetLineColor(
lineIndexInHistory));
rgb_color rgb_back = fTermColorTable[backcolor];
// /* rgb_color*/ rgb_back = fTextBackColor;
uint32 attr = fVisibleTextBuffer->GetLineColor(
lineIndexInHistory);
if (IS_BACKSET(attr))
rgb_back = fTermColorTable[IS_BACKCOLOR(attr)];
SetHighColor(rgb_back);
FillRect(rect);
}