mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2722
2722: Increase default font texture size r=heinrich5991 a=Jupeyy Now that we have fallback fonts this makes sense. Co-authored-by: Jupeyy <jupjopjap@gmail.com>
This commit is contained in:
commit
53e03192dd
|
@ -675,10 +675,10 @@ public:
|
|||
|
||||
dbg_msg("textrender", "loaded pFont from '%s'", pFilename);
|
||||
|
||||
pFont->m_CurTextureDimensions[0] = 256;
|
||||
pFont->m_CurTextureDimensions[0] = 1024;
|
||||
pFont->m_TextureData[0] = new unsigned char[pFont->m_CurTextureDimensions[0] * pFont->m_CurTextureDimensions[0]];
|
||||
mem_zero(pFont->m_TextureData[0], pFont->m_CurTextureDimensions[0] * pFont->m_CurTextureDimensions[0] * sizeof(unsigned char));
|
||||
pFont->m_CurTextureDimensions[1] = 256;
|
||||
pFont->m_CurTextureDimensions[1] = 1024;
|
||||
pFont->m_TextureData[1] = new unsigned char[pFont->m_CurTextureDimensions[1] * pFont->m_CurTextureDimensions[1]];
|
||||
mem_zero(pFont->m_TextureData[1], pFont->m_CurTextureDimensions[1] * pFont->m_CurTextureDimensions[1] * sizeof(unsigned char));
|
||||
|
||||
|
|
Loading…
Reference in a new issue