mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-27 08:45:38 +00:00
Fixed an issue where the textlist properties selectedBackgroundColor and selectedSecondaryBackgroundColor were not offset by selectorVerticalOffset
This commit is contained in:
parent
6e25eb2698
commit
f797ade74f
|
@ -483,7 +483,7 @@ template <typename T> void TextListComponent<T>::render(const glm::mat4& parentT
|
||||||
mRenderer->setMatrix(drawTrans);
|
mRenderer->setMatrix(drawTrans);
|
||||||
|
|
||||||
if (i == mCursor && backgroundColor != 0x00000000) {
|
if (i == mCursor && backgroundColor != 0x00000000) {
|
||||||
mRenderer->drawRect(mSelectorHorizontalOffset, 0.0f,
|
mRenderer->drawRect(mSelectorHorizontalOffset, mSelectorVerticalOffset,
|
||||||
entry.data.textCache->metrics.size.x, mSelectorHeight,
|
entry.data.textCache->metrics.size.x, mSelectorHeight,
|
||||||
backgroundColor, backgroundColor);
|
backgroundColor, backgroundColor);
|
||||||
}
|
}
|
||||||
|
@ -498,7 +498,7 @@ template <typename T> void TextListComponent<T>::render(const glm::mat4& parentT
|
||||||
drawTrans, offset - glm::vec3 {static_cast<float>(mLoopOffset2), 0.0f, 0.0f});
|
drawTrans, offset - glm::vec3 {static_cast<float>(mLoopOffset2), 0.0f, 0.0f});
|
||||||
mRenderer->setMatrix(drawTrans);
|
mRenderer->setMatrix(drawTrans);
|
||||||
if (i == mCursor && backgroundColor != 0x00000000) {
|
if (i == mCursor && backgroundColor != 0x00000000) {
|
||||||
mRenderer->drawRect(mSelectorHorizontalOffset, 0.0f,
|
mRenderer->drawRect(mSelectorHorizontalOffset, mSelectorVerticalOffset,
|
||||||
entry.data.textCache->metrics.size.x, mSelectorHeight,
|
entry.data.textCache->metrics.size.x, mSelectorHeight,
|
||||||
backgroundColor, backgroundColor);
|
backgroundColor, backgroundColor);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue