diff --git a/es-core/src/components/ImageComponent.cpp b/es-core/src/components/ImageComponent.cpp index 52c50d780..5253357d1 100644 --- a/es-core/src/components/ImageComponent.cpp +++ b/es-core/src/components/ImageComponent.cpp @@ -384,8 +384,8 @@ void ImageComponent::updateColors() void ImageComponent::render(const glm::mat4& parentTrans) { - if (!isVisible() || mTexture == nullptr || - (mTargetSize == glm::vec2 {0.0f, 0.0f} && mSize == glm::vec2 {0.0f, 0.0f})) + if (!isVisible() || mTexture == nullptr || mTargetSize == glm::vec2 {0.0f, 0.0f} || + mSize == glm::vec2 {0.0f, 0.0f}) return; glm::mat4 trans {parentTrans * getTransform()}; diff --git a/es-core/src/components/TextListComponent.h b/es-core/src/components/TextListComponent.h index 34ce13a79..1ac6bb6c3 100644 --- a/es-core/src/components/TextListComponent.h +++ b/es-core/src/components/TextListComponent.h @@ -485,6 +485,7 @@ void TextListComponent::applyTheme(const std::shared_ptr& theme, bool tile = elem->has("selectorImageTile") && elem->get("selectorImageTile"); mSelectorImage.setImage(path, tile); mSelectorImage.setSize(mSize.x, mSelectorHeight); + mSelectorImage.setResize(mSize.x, mSelectorHeight); mSelectorImage.setColorShift(mSelectorColor); mSelectorImage.setColorShiftEnd(mSelectorColorEnd); }