From f797ade74f214de66ba0ef520dcd0451fae39d9f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 25 Jul 2023 00:06:00 +0200 Subject: [PATCH] Fixed an issue where the textlist properties selectedBackgroundColor and selectedSecondaryBackgroundColor were not offset by selectorVerticalOffset --- es-core/src/components/primary/TextListComponent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/primary/TextListComponent.h b/es-core/src/components/primary/TextListComponent.h index 5431d5792..a3226e8ac 100644 --- a/es-core/src/components/primary/TextListComponent.h +++ b/es-core/src/components/primary/TextListComponent.h @@ -483,7 +483,7 @@ template void TextListComponent::render(const glm::mat4& parentT mRenderer->setMatrix(drawTrans); if (i == mCursor && backgroundColor != 0x00000000) { - mRenderer->drawRect(mSelectorHorizontalOffset, 0.0f, + mRenderer->drawRect(mSelectorHorizontalOffset, mSelectorVerticalOffset, entry.data.textCache->metrics.size.x, mSelectorHeight, backgroundColor, backgroundColor); } @@ -498,7 +498,7 @@ template void TextListComponent::render(const glm::mat4& parentT drawTrans, offset - glm::vec3 {static_cast(mLoopOffset2), 0.0f, 0.0f}); mRenderer->setMatrix(drawTrans); if (i == mCursor && backgroundColor != 0x00000000) { - mRenderer->drawRect(mSelectorHorizontalOffset, 0.0f, + mRenderer->drawRect(mSelectorHorizontalOffset, mSelectorVerticalOffset, entry.data.textCache->metrics.size.x, mSelectorHeight, backgroundColor, backgroundColor); }