Skip to content

Commit c0729e8

Browse files
authored
Lower the placement of labels in ComparisonPass (#258)
The initial offset from the top of the window was fine, until the menu bar was added which ended up covering the labels. Increase the offset to take the height of the menu bar into account.
1 parent 300aee1 commit c0729e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RenderPasses/DebugPasses/ComparisonPass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ void ComparisonPass::execute(RenderContext* pContext, const RenderData& renderDa
111111

112112
// Draw text labeling the right side image
113113
std::string rightSide = mSwapSides ? mLeftLabel : mRightLabel;
114-
TextRenderer::render(pContext, rightSide.c_str(), pDstFbo, float2(screenLoc + 16, 16));
114+
TextRenderer::render(pContext, rightSide.c_str(), pDstFbo, float2(screenLoc + 16, 48));
115115

116116
// Draw text labeling the left side image
117117
std::string leftSide = mSwapSides ? mRightLabel : mLeftLabel;
118118
uint32_t leftLength = uint32_t(leftSide.length()) * 9;
119-
TextRenderer::render(pContext, leftSide.c_str(), pDstFbo, float2(screenLoc - 16 - leftLength, 16));
119+
TextRenderer::render(pContext, leftSide.c_str(), pDstFbo, float2(screenLoc - 16 - leftLength, 48));
120120
}
121121
}
122122

0 commit comments

Comments
 (0)