- Added preloading of fonts to reduce the chance that characters from a single

font will require more than one hardware texture to display.


SVN r717 (trunk)
This commit is contained in:
Randy Heit 2008-01-27 05:23:10 +00:00
commit 499fefec07
4 changed files with 52 additions and 0 deletions

View file

@ -1386,6 +1386,10 @@ bool V_DoModeSetup (int width, int height, int bits)
screen->SetFont (SmallFont);
screen->SetGamma (Gamma);
// Load fonts now so they can be packed into textures straight away,
// if D3DFB is being used for the display.
FFont::StaticPreloadFonts();
{
int ratio;
int cwidth;