From f4a270ad049194f92e72e618758e2fe40fd55f6e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 19 Jan 2014 16:55:10 -0800 Subject: [PATCH] example app: load fonts from project dir, not slot dir Slot dir will containt link files, not font files --- samples/example_app/uc2_graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);