summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-03-29 06:35:33 +0000
committerTim Angus <tim@ngus.net>2013-01-12 20:19:22 +0000
commit53225e5b8eb2dffaccea9748be206b308e980ee7 (patch)
tree2d5c8bf97dae6c423c9bf6734095fe4f0bf87290
parenta3fc5ed9ada249ed2cb6c1c726401a9a6353c789 (diff)
Fixed up warning messages in tr_font.c
-rw-r--r--src/renderer/tr_font.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/renderer/tr_font.c b/src/renderer/tr_font.c
index a87ec0a9..3c35c798 100644
--- a/src/renderer/tr_font.c
+++ b/src/renderer/tr_font.c
@@ -364,7 +364,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
R_SyncRenderThread();
if (registeredFontCount >= MAX_FONTS) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: Too many fonts registered already.\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: Too many fonts registered already.\n");
return;
}
@@ -410,28 +410,28 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
}
#ifndef BUILD_FREETYPE
- ri.Printf(PRINT_ALL, "RE_RegisterFont: FreeType code not available\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: FreeType code not available\n");
#else
if (ftLibrary == NULL) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: FreeType not initialized.\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: FreeType not initialized.\n");
return;
}
len = ri.FS_ReadFile(fontName, &faceData);
if (len <= 0) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: Unable to read font file\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: Unable to read font file '%s'\n", fontName);
return;
}
// allocate on the stack first in case we fail
if (FT_New_Memory_Face( ftLibrary, faceData, len, 0, &face )) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: FreeType2, unable to allocate new face.\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: FreeType, unable to allocate new face.\n");
return;
}
if (FT_Set_Char_Size( face, pointSize << 6, pointSize << 6, dpi, dpi)) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: FreeType2, Unable to set face char size.\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: FreeType, unable to set face char size.\n");
return;
}
@@ -442,7 +442,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
out = ri.Malloc(1024*1024);
if (out == NULL) {
- ri.Printf(PRINT_ALL, "RE_RegisterFont: ri.Malloc failure during output image creation.\n");
+ ri.Printf(PRINT_WARNING, "RE_RegisterFont: ri.Malloc failure during output image creation.\n");
return;
}
Com_Memset(out, 0, 1024*1024);
@@ -534,7 +534,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
void R_InitFreeType(void) {
#ifdef BUILD_FREETYPE
if (FT_Init_FreeType( &ftLibrary )) {
- ri.Printf(PRINT_ALL, "R_InitFreeType: Unable to initialize FreeType.\n");
+ ri.Printf(PRINT_WARNING, "R_InitFreeType: Unable to initialize FreeType.\n");
}
#endif
registeredFontCount = 0;