Change font location
This commit is contained in:
parent
65ae6a78f0
commit
7f1b9e2a8e
|
@ -46,7 +46,7 @@ int main(int argc, char* argv[]) {
|
|||
std::cerr << "Failed to load shotgun texture" << std::endl;
|
||||
}
|
||||
|
||||
TTF_Font* font = TTF_OpenFont("OpenSans-Bold.ttf", 24);
|
||||
TTF_Font* font = TTF_OpenFont("/usr/share/fonts/TTF/OpenSans-Bold.ttf", 24);
|
||||
if (!font) {
|
||||
std::cerr << "Failed to load font! TTF_Error: " << TTF_GetError() << std::endl;
|
||||
SDL_DestroyRenderer(renderer);
|
||||
|
|
Loading…
Reference in New Issue