only-draw-visible-stuff #2

Merged
andi merged 5 commits from only-draw-visible-stuff into master 2022-12-19 17:00:19 +00:00
Showing only changes of commit d0fb7d4362 - Show all commits

View File

@@ -520,11 +520,9 @@ class InnerBigText(QWidget):
for highlight in highlights: for highlight in highlights:
if highlight.is_highlight_full_line(): if highlight.is_highlight_full_line():
left_offset = -1 * self._left_offset * self.char_width
y1 = y_line_offset - self.char_height + self.char_height / 7 y1 = y_line_offset - self.char_height + self.char_height / 7
height = self.char_height height = self.char_height
full_width = Settings.max_line_length() * self.char_width rect = QRect(0, round(y1), self.width(), round(height))
rect = QRect(round(left_offset), round(y1), round(full_width), round(height))
self.highlight_background(painter, rect, highlight.get_brush_full_line()) self.highlight_background(painter, rect, highlight.get_brush_full_line())
for highlight in highlights: for highlight in highlights: