Fixed an issue where the TextListComponent debug overlay would not always be correctly positioned.

This commit is contained in:
Leon Styhre 2022-09-18 16:02:03 +02:00
parent c45678e857
commit da7bfa0fa7

View file

@ -390,6 +390,7 @@ template <typename T> void TextListComponent<T>::render(const glm::mat4& parentT
} }
if (Settings::getInstance()->getBool("DebugText")) { if (Settings::getInstance()->getBool("DebugText")) {
mRenderer->setMatrix(trans);
mRenderer->drawRect(mHorizontalMargin, 0.0f, mSize.x - mHorizontalMargin * 2.0f, mSize.y, mRenderer->drawRect(mHorizontalMargin, 0.0f, mSize.x - mHorizontalMargin * 2.0f, mSize.y,
0x00000033, 0x00000033); 0x00000033, 0x00000033);
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033); mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00FF0033, 0x00FF0033);