From 52792378c04f294aefd34bcbb773bf21c4b52d5b Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Wed, 29 Dec 2021 21:34:12 -0500 Subject: [PATCH] Qt TAS branch view background fill bug fix. Only draw in the visible area. --- src/drivers/Qt/TasEditor/branches.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drivers/Qt/TasEditor/branches.cpp b/src/drivers/Qt/TasEditor/branches.cpp index d9afe7b0..14691767 100644 --- a/src/drivers/Qt/TasEditor/branches.cpp +++ b/src/drivers/Qt/TasEditor/branches.cpp @@ -730,7 +730,8 @@ void BRANCHES::paintEvent(QPaintEvent *event) linearGrad.setColorAt(0, QColor(0xBF,0xE2,0xEF)); linearGrad.setColorAt(1, QColor(0xE5,0xFB,0xFF)); - painter.fillRect( 0, 0, viewWidth, viewHeight, linearGrad ); + //painter.fillRect( 0, 0, viewWidth, viewHeight, linearGrad ); + painter.fillRect( viewRect, linearGrad ); // // lines int branch, tempBranchX, tempBranchY, tempBranchX2, tempBranchY2, parentX, parentY, childID;