mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed two small logical errors.
This commit is contained in:
parent
39c9bd2cbc
commit
1c82228a9c
|
@ -211,7 +211,7 @@ void DateTimeComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
|
|
||||||
float maxHeight {0.0f};
|
float maxHeight {0.0f};
|
||||||
|
|
||||||
if (!theme->isLegacyTheme() && properties & elem->has("size")) {
|
if (!theme->isLegacyTheme() && elem->has("size")) {
|
||||||
const glm::vec2 size {elem->get<glm::vec2>("size")};
|
const glm::vec2 size {elem->get<glm::vec2>("size")};
|
||||||
if (size.x != 0.0f && size.y != 0.0f)
|
if (size.x != 0.0f && size.y != 0.0f)
|
||||||
maxHeight = mSize.y * 2.0f;
|
maxHeight = mSize.y * 2.0f;
|
||||||
|
|
|
@ -459,7 +459,7 @@ void TextComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
|
|
||||||
float maxHeight {0.0f};
|
float maxHeight {0.0f};
|
||||||
|
|
||||||
if (!theme->isLegacyTheme() && properties & elem->has("size")) {
|
if (!theme->isLegacyTheme() && elem->has("size")) {
|
||||||
const glm::vec2 size {elem->get<glm::vec2>("size")};
|
const glm::vec2 size {elem->get<glm::vec2>("size")};
|
||||||
if (size.x != 0.0f && size.y != 0.0f)
|
if (size.x != 0.0f && size.y != 0.0f)
|
||||||
maxHeight = mSize.y * 2.0f;
|
maxHeight = mSize.y * 2.0f;
|
||||||
|
|
Loading…
Reference in a new issue