From 91a4f053148c3729b35c4bbd998797e6fb8c54e3 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 10 Jan 2022 21:34:47 -0500 Subject: [PATCH] Logic change to scale cloud Y position with height of grid. --- src/drivers/Qt/TasEditor/branches.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/drivers/Qt/TasEditor/branches.cpp b/src/drivers/Qt/TasEditor/branches.cpp index ce8ae95e..df03e59f 100644 --- a/src/drivers/Qt/TasEditor/branches.cpp +++ b/src/drivers/Qt/TasEditor/branches.cpp @@ -177,7 +177,7 @@ void BRANCHES::calcFontData(void) pxGridHalfHeight = pxMinGridHalfHeight; w = pxMinGridWidth * 13; - h = pxMinGridHalfHeight * 12 * 2; + h = pxMinGridHalfHeight * 13 * 2; if (w < BRANCHES_BITMAP_WIDTH ) w = BRANCHES_BITMAP_WIDTH; if (h < BRANCHES_BITMAP_HEIGHT) h = BRANCHES_BITMAP_HEIGHT; @@ -1655,7 +1655,10 @@ void BRANCHES::recalculateBranchesTree() // } //} - cloudY = height()/2; + int cloudYMin = EMPTY_BRANCHES_Y_BASE + (pxBoxHeight*4); + int cloudYMax = (height()/2) + grid_halfheight; + + cloudY = cloudYMin + ( (cloudYMax - cloudYMin) * totalHeight ) / 10; // 3. Set pixel positions of branches int max_x = 0;