mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-24 21:54:40 +02:00
If font fails to open, log path tried
This commit is contained in:
parent
b138b87fdc
commit
9cfbc56bfa
@ -34,7 +34,7 @@ Font::Font(const std::string &path, unsigned int size)
|
|||||||
|
|
||||||
font = TTF_OpenFont(path.c_str(), size);
|
font = TTF_OpenFont(path.c_str(), size);
|
||||||
if (!font) {
|
if (!font) {
|
||||||
ERROR("Unable to open font\n");
|
ERROR("Unable to open font '%s'\n", TTF_FONT);
|
||||||
TTF_Quit();
|
TTF_Quit();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user