mirror of
https://github.com/ENSL/NS.git
synced 2024-11-26 14:30:54 +00:00
missing bitmap font for high res
This commit is contained in:
parent
f6d88fa095
commit
04a1a8ac7b
1 changed files with 12 additions and 0 deletions
|
@ -408,6 +408,18 @@ buildDefaultFont:
|
|||
|
||||
if(g_CV_BitmapFonts && g_CV_BitmapFonts->value)
|
||||
{
|
||||
int fontRes = 640;
|
||||
if (m_xRes >= 1600)
|
||||
fontRes = 1600;
|
||||
else if (m_xRes >= 1280)
|
||||
fontRes = 1280;
|
||||
else if (m_xRes >= 1152)
|
||||
fontRes = 1152;
|
||||
else if (m_xRes >= 1024)
|
||||
fontRes = 1024;
|
||||
else if (m_xRes >= 800)
|
||||
fontRes = 800;
|
||||
|
||||
sprintf(fontFilename, "gfx\\vgui\\fonts\\%d_%s.tga", m_xRes, m_pSchemeList[i].schemeName);
|
||||
pFontData = gEngfuncs.COM_LoadFile( fontFilename, 5, &fontFileLength );
|
||||
if(!pFontData)
|
||||
|
|
Loading…
Reference in a new issue