diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2022-10-24 16:10:05 -0600 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-10 16:19:13 -0500 |
| commit | ccf83b992b7f0de00d384d17b1a3406a0fca28ab (patch) | |
| tree | a51653dfd00f38286021fabfac1a307346077c91 /examples | |
| parent | 57aa7249fe0fdfa5cabc5231595314df91d12729 (diff) | |
Fix rendering of code lines when scrolling right, fix TokenizedTextView example
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/triage/byte.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/triage/byte.cpp b/examples/triage/byte.cpp index b6318d1e..75bf7474 100644 --- a/examples/triage/byte.cpp +++ b/examples/triage/byte.cpp @@ -651,8 +651,8 @@ void ByteView::paintEvent(QPaintEvent* event) break; if (m_lines[y + m_topLine].separator) { - m_render.drawLinearDisassemblyLineBackground( - p, NonContiguousSeparatorLineType, QRect(0, 2 + y * charHeight, event->rect().width(), charHeight), 0); + QRect lineRect = QRect(0, 2 + y * charHeight, event->rect().width(), charHeight); + m_render.drawLinearDisassemblyLineBackground(p, NonContiguousSeparatorLineType, lineRect, lineRect, 0); continue; } |
