Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
7fe0b8e7 by Steve Lhomme at 2023-12-02T15:07:10+00:00
freetype/win32: keep iterating until we get a match

See documentation [1].

[1] 
https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nc-wingdi-enhmfenumproc

- - - - -


1 changed file:

- modules/text_renderer/freetype/fonts/win32.c


Changes:

=====================================
modules/text_renderer/freetype/fonts/win32.c
=====================================
@@ -524,8 +524,9 @@ static int CALLBACK MetaFileEnumProc( HDC hdc, HANDLETABLE* 
table,
                 ( const EMREXTCREATEFONTINDIRECTW * ) record;
 
         *( ( LOGFONT * ) log_font ) = create_font_record->elfw.elfLogFont;
+        return 1;
     }
-    return 1;
+    return 0;
 }
 
 /**



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/7fe0b8e73e3ae6bbbc9003dabb58c7972b20a042

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/7fe0b8e73e3ae6bbbc9003dabb58c7972b20a042
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to