mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Fixed an issue where the imageSelectedColor and textSelectedColor carousel properties would color shift too many items.
This commit is contained in:
parent
ace3ace916
commit
1939080e82
|
@ -1123,7 +1123,8 @@ template <typename T> void CarouselComponent<T>::render(const glm::mat4& parentT
|
||||||
|
|
||||||
comp->setScale(renderItem.scale);
|
comp->setScale(renderItem.scale);
|
||||||
comp->setOpacity(renderItem.opacity * metadataOpacity);
|
comp->setOpacity(renderItem.opacity * metadataOpacity);
|
||||||
if (renderItem.index == mCursor && (mHasImageSelectedColor || mHasTextSelectedColor)) {
|
if (renderItem.index == mCursor && std::abs(renderItem.distance) < 1.0f &&
|
||||||
|
(mHasImageSelectedColor || mHasTextSelectedColor)) {
|
||||||
if (mHasTextSelectedColor && mEntries.at(renderItem.index).data.imagePath == "" &&
|
if (mHasTextSelectedColor && mEntries.at(renderItem.index).data.imagePath == "" &&
|
||||||
mEntries.at(renderItem.index).data.defaultImagePath == "") {
|
mEntries.at(renderItem.index).data.defaultImagePath == "") {
|
||||||
comp->setColor(mTextSelectedColor);
|
comp->setColor(mTextSelectedColor);
|
||||||
|
|
Loading…
Reference in a new issue