mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-18 04:21:29 +00:00
[client] only init ttf if fps is enabled
This commit is contained in:
parent
f2216168f4
commit
9590b58f0f
@ -771,17 +771,20 @@ int run()
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (TTF_Init() < 0)
|
if (params.showFPS)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("TTL_Init Failed");
|
if (TTF_Init() < 0)
|
||||||
return -1;
|
{
|
||||||
}
|
DEBUG_ERROR("TTL_Init Failed");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
state.font = TTF_OpenFont("/usr/share/fonts/truetype/freefont/FreeMono.ttf", 16);
|
state.font = TTF_OpenFont("/usr/share/fonts/truetype/freefont/FreeMono.ttf", 16);
|
||||||
if (!state.font)
|
if (!state.font)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("TTL_OpenFont Failed");
|
DEBUG_ERROR("TTL_OpenFont Failed");
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state.window = SDL_CreateWindow(
|
state.window = SDL_CreateWindow(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user