mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-19 13:25:38 +00:00
DateTimeEditComponent no longer renders the debug overlay unless there is a string to display
This commit is contained in:
parent
302f6e0fc5
commit
2a9ab5ea88
|
@ -165,7 +165,7 @@ void DateTimeEditComponent::render(const glm::mat4& parentTrans)
|
||||||
trans = glm::translate(trans, glm::round(off));
|
trans = glm::translate(trans, glm::round(off));
|
||||||
mRenderer->setMatrix(trans);
|
mRenderer->setMatrix(trans);
|
||||||
|
|
||||||
if (Settings::getInstance()->getBool("DebugText")) {
|
if (Settings::getInstance()->getBool("DebugText") && mDateText->getValue() != "") {
|
||||||
mRenderer->setMatrix(trans);
|
mRenderer->setMatrix(trans);
|
||||||
mDateText->setDebugRendering(false);
|
mDateText->setDebugRendering(false);
|
||||||
if (mDateText->getSize().x > 0.0f) {
|
if (mDateText->getSize().x > 0.0f) {
|
||||||
|
|
Loading…
Reference in a new issue