diff --git a/samples/example_app/uc2_graphics.cpp b/samples/example_app/uc2_graphics.cpp index 29441be913..01a7da570e 100644 --- a/samples/example_app/uc2_graphics.cpp +++ b/samples/example_app/uc2_graphics.cpp @@ -246,7 +246,7 @@ void app_graphics_init() { glClearColor(0.0f, 0.0f, 0.0f, 0.0f); - ttf_load_fonts("."); + ttf_load_fonts(strlen(uc_aid.project_dir)?uc_aid.project_dir:"."); boinc_resolve_filename("logo.jpg", path, sizeof(path)); logo.load_image_file(path);