[1/2] gdi32: Make AddFontToList skip adding a face into global lists if the font is not supposed to be enumerated, and return a pointer to first loaded face.

Alexandre Julliard julliard at winehq.org
Wed Oct 27 05:13:12 CDT 2010


Dmitry Timoshkov <dmitry at codeweavers.com> writes:

> @@ -1207,15 +1207,17 @@ static void AddFaceToFamily(Face *face, Family *family)
>  
>  #define ADDFONT_EXTERNAL_FONT 0x01
>  #define ADDFONT_FORCE_BITMAP  0x02
> -static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_size, char *fake_family, const WCHAR *target_family, DWORD flags)
> +#define ADDFONT_HIDDEN        0x04
> +static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_size,
> +                         char *fake_family, const WCHAR *target_family, DWORD flags, Face **face_to_return)

The face_to_return pointer doesn't seem to be used anywhere. If it's
really needed for something else it should be a separate patch.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list