[vlc-commits] freetype: fix regression with GDI font selector

Francois Cartegnie git at videolan.org
Tue Aug 18 16:08:44 CEST 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Aug 18 16:02:33 2020 +0200| [a4ab1511906038479bd21fccf842480b76d30f3f] | committer: Francois Cartegnie

freetype: fix regression with GDI font selector

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4ab1511906038479bd21fccf842480b76d30f3f
---

 modules/text_renderer/freetype/fonts/win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/text_renderer/freetype/fonts/win32.c b/modules/text_renderer/freetype/fonts/win32.c
index f2ab4cf769..a827da2dfb 100644
--- a/modules/text_renderer/freetype/fonts/win32.c
+++ b/modules/text_renderer/freetype/fonts/win32.c
@@ -424,7 +424,7 @@ const vlc_family_t *Win32_GetFamily( vlc_font_select_t *fs, const char *psz_fami
     HDC hDC = GetDC( NULL );
     struct enumFontCallbackContext ctx;
     ctx.fs = fs;
-    ctx.p_family = NULL;
+    ctx.p_family = p_family;
     EnumFontFamiliesEx(hDC, &lf, (FONTENUMPROC)&EnumFontCallback, (LPARAM)&ctx, 0);
     ReleaseDC(NULL, hDC);
 



More information about the vlc-commits mailing list