Nikolay Sivov : dwrite: Return on first found glyph.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 17 05:00:40 CDT 2014


Module: wine
Branch: master
Commit: e3c514f6d555a4772160b49f1d0e4ee49f92b8f6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e3c514f6d555a4772160b49f1d0e4ee49f92b8f6

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Oct 16 11:59:55 2014 +0400

dwrite: Return on first found glyph.

---

 dlls/dwrite/opentype.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index a11b2fb..487f56b 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -377,7 +377,7 @@ void opentype_cmap_get_glyphindex(void *data, UINT32 utf32c, UINT16 *pgi)
         table = (WORD*)(((BYTE*)CMAP_Table) + GET_BE_DWORD(CMAP_Table->tables[i].offset));
         type = GET_BE_WORD(*table);
         TRACE("table type %i\n", type);
-        /* Break when we find a handled type */
+
         switch (type)
         {
             case OPENTYPE_CMAP_TABLE_SEGMENT_MAPPING:
@@ -389,6 +389,8 @@ void opentype_cmap_get_glyphindex(void *data, UINT32 utf32c, UINT16 *pgi)
             default:
                 TRACE("table type %i unhandled.\n", type);
         }
+
+        if (*pgi) return;
     }
 }
 




More information about the wine-cvs mailing list