Skip to content

Commit

Permalink
Add nicer displaying of 1 instruction loops (#3396)
Browse files Browse the repository at this point in the history
* fix #3369
  • Loading branch information
lorsanta authored Dec 1, 2024
1 parent 93a06f5 commit 6e894a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widgets/DisassemblyWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,11 @@ void DisassemblyLeftPanel::paintEvent(QPaintEvent *event)
int arrowLineNumber = offsetToLine(arrow.jmpToffset());
int lineArrowY = lineToPixels(arrowLineNumber);

if (lineStartNumber == arrowLineNumber) {
currentLineYPos += lineHeight / 4;
lineArrowY -= lineHeight / 4;
}

// Draw the lines
p.drawLine(rightOffset, currentLineYPos, rightOffset - lineOffset, currentLineYPos); // left
p.drawLine(rightOffset - lineOffset, currentLineYPos, rightOffset - lineOffset,
Expand Down

0 comments on commit 6e894a1

Please sign in to comment.