mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Added a compensation for a strange helpsystem sizing issue when drawing the element background
This commit is contained in:
parent
5183950015
commit
c9b56c5eb1
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Reference in a new issue