mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Round to integer to avoid blurry text
This commit is contained in:
parent
aac91e8763
commit
0080f55ef8
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue