mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 15:08:19 +00:00
Merge #3147
3147: Clamp font size to atleast 2 (fixes #3145) r=def- a=Jupeyy We dont need to `close` #3146 i think setting it to 0 makes no sense anyway the config to disable entities text is `cl_text_entities` not this one Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
e002ab118a
|
@ -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