mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-12 08:11:10 +02:00
Using idTech 5 fonts for gui and console.
This commit is contained in:
@@ -1494,6 +1494,12 @@ idImage *idImageManager::ImageFromFile( const char *_name, textureFilter_t filte
|
||||
name.Replace( ".tga", "" );
|
||||
name.BackSlashesToSlashes();
|
||||
|
||||
if ( idStr::Icmpn( name.c_str(), "fonts", 5 ) == 0 || idStr::Icmpn( name.c_str(), "newfonts", 8 ) == 0 ) {
|
||||
filter = ( filter == TF_DEFAULT ) ? TF_LINEAR : filter;
|
||||
allowDownSize = false;
|
||||
depth = TD_HIGH_QUALITY;
|
||||
}
|
||||
|
||||
//
|
||||
// see if the image is already loaded, unless we
|
||||
// are in a reloadImages call
|
||||
@@ -1561,7 +1567,7 @@ idImage *idImageManager::ImageFromFile( const char *_name, textureFilter_t filte
|
||||
//
|
||||
image = AllocImage( name );
|
||||
|
||||
// HACK: to allow keep fonts from being mip'd, as new ones will be introduced with localization
|
||||
// HACK: to allow keep old fonts from being mip'd, as new ones will be introduced with localization
|
||||
// this keeps us from having to make a material for each font tga
|
||||
if ( name.Find( "fontImage_") >= 0 ) {
|
||||
allowDownSize = false;
|
||||
|
||||
Reference in New Issue
Block a user