diff --git a/src/apps/debugger/user_interface/gui/team_window/SourceView.cpp b/src/apps/debugger/user_interface/gui/team_window/SourceView.cpp
index 3e3a4f9..958edb3 100644
a
|
b
|
SourceView::TextView::TextView(SourceView* sourceView, MarkerManager* manager,
|
1045 | 1045 | fScrollRunner(NULL), |
1046 | 1046 | fMarkerManager(manager) |
1047 | 1047 | { |
1048 | | SetViewColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR)); |
| 1048 | SetViewColor(B_TRANSPARENT_COLOR); |
1049 | 1049 | fTextColor = ui_color(B_DOCUMENT_TEXT_COLOR); |
1050 | 1050 | SetFlags(Flags() | B_NAVIGABLE); |
1051 | 1051 | } |
… |
… |
SourceView::TextView::MaxSize()
|
1085 | 1085 | void |
1086 | 1086 | SourceView::TextView::Draw(BRect updateRect) |
1087 | 1087 | { |
1088 | | if (fSourceCode == NULL) |
| 1088 | if (fSourceCode == NULL) { |
| 1089 | SetLowColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR)); |
| 1090 | FillRect(updateRect, B_SOLID_LOW); |
1089 | 1091 | return; |
| 1092 | } |
1090 | 1093 | |
1091 | 1094 | // get the lines intersecting with the update rect |
1092 | 1095 | int32 minLine, maxLine; |
… |
… |
SourceView::TextView::Draw(BRect updateRect)
|
1101 | 1104 | SourceView::MarkerManager::InstructionPointerMarker* ipMarker; |
1102 | 1105 | int32 markerIndex = 0; |
1103 | 1106 | for (int32 i = minLine; i <= maxLine; i++) { |
1104 | | SetLowColor(ViewColor()); |
| 1107 | SetLowColor(ui_color(B_DOCUMENT_BACKGROUND_COLOR)); |
1105 | 1108 | float y = i * fFontInfo->lineHeight; |
1106 | 1109 | BString lineString; |
1107 | 1110 | _FormatLine(fSourceCode->LineAt(i), lineString); |
1108 | 1111 | |
| 1112 | FillRect(BRect(0.0, y, kLeftTextMargin, y + fFontInfo->lineHeight), |
| 1113 | B_SOLID_LOW); |
1109 | 1114 | for (int32 j = markerIndex; j < markers.CountItems(); j++) { |
1110 | 1115 | marker = markers.ItemAt(j); |
1111 | 1116 | if (marker->Line() < (uint32)i) { |
… |
… |
SourceView::TextView::Draw(BRect updateRect)
|
1123 | 1128 | |
1124 | 1129 | } else |
1125 | 1130 | SetLowColor(255, 255, 0, 255); |
1126 | | FillRect(BRect(kLeftTextMargin, y, Bounds().right, |
1127 | | y + fFontInfo->lineHeight), B_SOLID_LOW); |
1128 | 1131 | break; |
1129 | 1132 | } else |
1130 | 1133 | break; |
1131 | 1134 | } |
1132 | 1135 | |
| 1136 | FillRect(BRect(kLeftTextMargin, y, Bounds().right, |
| 1137 | y + fFontInfo->lineHeight), B_SOLID_LOW); |
1133 | 1138 | DrawString(lineString, |
1134 | 1139 | BPoint(kLeftTextMargin, y + fFontInfo->fontHeight.ascent)); |
1135 | 1140 | } |
… |
… |
SourceView::SetStackTrace(StackTrace* stackTrace, Thread* activeThread)
|
2053 | 2058 | |
2054 | 2059 | fMarkerManager->SetStackTrace(fStackTrace); |
2055 | 2060 | fMarkerView->SetStackTrace(fStackTrace); |
2056 | | fTextView->Invalidate(); |
2057 | 2061 | } |
2058 | 2062 | |
2059 | 2063 | |
2060 | 2064 | void |
2061 | 2065 | SourceView::SetStackFrame(StackFrame* stackFrame) |
2062 | 2066 | { |
| 2067 | TRACE_GUI("SourceView::SetStackFrame(%p)\n", stackFrame); |
2063 | 2068 | if (stackFrame == fStackFrame) |
2064 | 2069 | return; |
2065 | 2070 | |