freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master a48cdddef 2/2: * src/winfonts/winfnt.c (fnt_face_get_


From: Werner Lemberg
Subject: [freetype2] master a48cdddef 2/2: * src/winfonts/winfnt.c (fnt_face_get_dll_font): Unwrap arithmetic.
Date: Thu, 1 Aug 2024 21:19:22 -0400 (EDT)

branch: master
commit a48cdddef3f53c7dd6239f0fe92d723d5f550dc8
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/winfonts/winfnt.c (fnt_face_get_dll_font): Unwrap arithmetic.
---
 src/winfonts/winfnt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index 6dbe74bf5..74a06416c 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -359,8 +359,8 @@
           if ( type_id == 0x8008U )
           {
             font_count  = count;
-            font_offset = FT_STREAM_POS() + 4 +
-                          (FT_ULong)( stream->cursor - stream->limit );
+            font_offset = FT_STREAM_POS() + 4 -
+                          (FT_ULong)( stream->limit - stream->cursor );
             break;
           }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]