Convert grtext to use new logging facility

This commit is contained in:
Azamat H. Hackimov 2024-08-20 01:29:48 +03:00
parent a16420789d
commit e627dfc546
2 changed files with 4 additions and 2 deletions

View File

@ -12,6 +12,7 @@ target_link_libraries(grtext PRIVATE
ddio
mem
misc
plog::plog
)
target_include_directories(grtext PUBLIC
$<BUILD_INTERFACE:

View File

@ -116,6 +116,7 @@
#include "cfile.h"
#include "ddio.h"
#include "grtextlib.h"
#include "log.h"
#include "mem.h"
#include "pserror.h"
#include "renderer.h"
@ -296,7 +297,7 @@ int grfont_Load(const char *fname) {
if (!ff) {
return false;
} else if (ff == (FONTFILE)0xffffffff) {
mprintf(0, "Illegal font file: %s.\n", fname);
LOG_ERROR.printf("Illegal font file: %s.\n", fname);
return false;
}
@ -552,7 +553,7 @@ bool grfont_SetTemplate(const char *pathname, const tFontTemplate *ft) {
if (!ffin) {
return false;
} else if (ffin == (FONTFILE)0xffffffff) {
mprintf(0, "Illegal font file %s\n", pathname);
LOG_ERROR.printf("Illegal font file %s\n", pathname);
return false;
}