From c9b56c5eb10f00599166c4e6b5833d85b98028e7 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 27 Feb 2025 20:42:03 +0100 Subject: [PATCH] Added a compensation for a strange helpsystem sizing issue when drawing the element background --- es-core/src/components/HelpComponent.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/es-core/src/components/HelpComponent.cpp b/es-core/src/components/HelpComponent.cpp index 3a963df93..d40ff0316 100644 --- a/es-core/src/components/HelpComponent.cpp +++ b/es-core/src/components/HelpComponent.cpp @@ -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};