mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
Merge pull request #409 from stefansaraev/vdr
vdr: adjust for fontconfig 2.9.0
This commit is contained in:
commit
8c2bdf8f36
14
packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-10_fontconfig_fontsort.patch
vendored
Normal file
14
packages/3rdparty/multimedia/vdr/patches/vdr-1.7.27-10_fontconfig_fontsort.patch
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/font.c b/font.c
|
||||
index 706a017..72c5ec3 100644
|
||||
--- a/font.c
|
||||
+++ b/font.c
|
||||
@@ -482,7 +482,8 @@ cString cFont::GetFontFileName(const char *FontName)
|
||||
FcPatternAddBool(pat, FC_SCALABLE, FcTrue);
|
||||
FcConfigSubstitute(NULL, pat, FcMatchPattern);
|
||||
FcDefaultSubstitute(pat);
|
||||
- FcFontSet *fontset = FcFontSort(NULL, pat, FcFalse, NULL, NULL);
|
||||
+ FcResult fresult;
|
||||
+ FcFontSet *fontset = FcFontSort(NULL, pat, FcFalse, NULL, &fresult);
|
||||
if (fontset) {
|
||||
for (int i = 0; i < fontset->nfont; i++) {
|
||||
FcBool scalable;
|
Loading…
x
Reference in New Issue
Block a user