Round to integer to avoid blurry text
Some checks failed
Build branch / build-all (push) Failing after 20s
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
smallmodel 2025-03-02 14:12:54 +01:00
parent aac91e8763
commit 0080f55ef8
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -313,7 +313,8 @@ void UIFont::Print(float x, float y, const char *text, size_t maxlen, const floa
}
uii.Rend_SetColor(color);
uii.Rend_DrawString(m_font, text, x, y, maxlen, virtualScreen);
// Round to integer to avoid blurry text
uii.Rend_DrawString(m_font, text, (int)x, (int)y, maxlen, virtualScreen);
}
void UIFont::PrintJustified(