Fix empty background coloring right/below of text lines

This commit is contained in:
Siarzhuk Zharski
2013-03-14 07:44:39 +00:00
parent b9b805689e
commit 238b435a8e
+7 -4
View File
@@ -1224,11 +1224,14 @@ TermView::Draw(BRect updateRect)
SetHighColor(fSelectBackColor); SetHighColor(fSelectBackColor);
FillRect(rect); FillRect(rect);
} else { } else {
rgb_color rgb_back = fTextBackColor;
int lineIndexInHistory = j + fTextBuffer->HistorySize(); int lineIndexInHistory = j + fTextBuffer->HistorySize();
uint32 backcolor = IS_BACKCOLOR(fVisibleTextBuffer->GetLineColor( uint32 attr = fVisibleTextBuffer->GetLineColor(
lineIndexInHistory)); lineIndexInHistory);
rgb_color rgb_back = fTermColorTable[backcolor];
// /* rgb_color*/ rgb_back = fTextBackColor; if (IS_BACKSET(attr))
rgb_back = fTermColorTable[IS_BACKCOLOR(attr)];
SetHighColor(rgb_back); SetHighColor(rgb_back);
FillRect(rect); FillRect(rect);
} }