Small adjustment to the scraper busy component so it doesn't align precisely with any text boundaries.

This commit is contained in:
Leon Styhre 2023-02-27 22:23:41 +01:00
parent 6a67df894f
commit 4bda5a7495

View file

@ -653,6 +653,10 @@ void GuiScraperSearch::render(const glm::mat4& parentTrans)
renderChildren(trans); renderChildren(trans);
mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00000009, 0x00000009); mRenderer->drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0x00000009, 0x00000009);
// Slight adjustment upwards so the busy grid is not rendered precisely at the text edge.
trans = glm::translate(
trans, glm::vec3 {0.0f, -(mRenderer->getScreenResolutionModifier() * 10.0f), 0.0f});
if (mBlockAccept) { if (mBlockAccept) {
mRenderer->setMatrix(trans); mRenderer->setMatrix(trans);
mBusyAnim.render(trans); mBusyAnim.render(trans);