Added a compensation for a strange helpsystem sizing issue when drawing the element background

This commit is contained in:
Leon Styhre 2025-02-27 20:42:03 +01:00
parent 5183950015
commit c9b56c5eb1

View file

@ -373,9 +373,11 @@ void HelpComponent::render(const glm::mat4& parentTrans)
mRenderer->setMatrix(trans);
mRenderer->drawRect(
0.0f, 0.0f, mSize.x + mStyleBackgroundPadding.x, mSize.y + mStyleBackgroundPadding.y,
mStyleBackgroundColor, mStyleBackgroundColorEnd, mStyleColorGradientHorizontal,
mThemeOpacity, 1.0f, Renderer::BlendFactor::SRC_ALPHA,
0.0f, 0.0f,
mSize.x + mStyleBackgroundPadding.x -
(mStyleEntrySpacing * mRenderer->getScreenWidth()),
mSize.y + mStyleBackgroundPadding.y, mStyleBackgroundColor, mStyleBackgroundColorEnd,
mStyleColorGradientHorizontal, mThemeOpacity, 1.0f, Renderer::BlendFactor::SRC_ALPHA,
Renderer::BlendFactor::ONE_MINUS_SRC_ALPHA, mStyleBackgroundCornerRadius);
mPosition = {0.0f, 0.0f, 0.0f};