Huw Davies : gdi32: Try to load Wine' s TrueType fonts from the build directory.
Module: wine Branch: master Commit: bc2a4dbee086de69cd05a30f3d717cb6858d030c URL: http://source.winehq.org/git/wine.git/?a=commit;h=bc2a4dbee086de69cd05a30f3d... Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 12 14:36:44 2007 +0100 gdi32: Try to load Wine's TrueType fonts from the build directory. --- dlls/gdi32/freetype.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 8d48e66..4ece12c 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -2179,6 +2179,7 @@ BOOL WineEngInit(void) /* load the system truetype fonts */ data_dir = wine_get_data_dir(); + if (!data_dir) data_dir = wine_get_build_dir(); if (data_dir && (unixname = HeapAlloc(GetProcessHeap(), 0, strlen(data_dir) + sizeof("/fonts/")))) { strcpy(unixname, data_dir); strcat(unixname, "/fonts/");
participants (1)
-
Alexandre Julliard