mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
clamp font size to atleast 2 (fixes #3145)
This commit is contained in:
parent
e88a7dee0a
commit
90db24c356
|
@ -465,6 +465,7 @@ void CMapImages::UpdateEntityLayerText(void *pTexBuffer, int ImageColorChannelCo
|
||||||
void CMapImages::InitOverlayTextures()
|
void CMapImages::InitOverlayTextures()
|
||||||
{
|
{
|
||||||
int TextureSize = 64 * m_TextureScale / 100;
|
int TextureSize = 64 * m_TextureScale / 100;
|
||||||
|
TextureSize = clamp(TextureSize, 2, 64);
|
||||||
int TextureToVerticalCenterOffset = (64 - TextureSize) / 2; // should be used to move texture to the center of 64 pixels area
|
int TextureToVerticalCenterOffset = (64 - TextureSize) / 2; // should be used to move texture to the center of 64 pixels area
|
||||||
|
|
||||||
if(m_OverlayBottomTexture == -1)
|
if(m_OverlayBottomTexture == -1)
|
||||||
|
|
Loading…
Reference in a new issue