shithub: freetype+ttf2subf

Download patch

ref: 06820637e2e1b6779c0157abb11a3bb4d65e1f53
parent: c5a8a5350a572cac399643ec8cacdb3330dc79df
author: Werner Lemberg <[email protected]>
date: Mon May 14 05:45:16 EDT 2018

* src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2018-05-14  Werner Lemberg  <[email protected]>
 
+	* src/base/ftobjs.c (FT_Load_Glyph): Fix signature of `pixel_modes'.
+
+2018-05-14  Werner Lemberg  <[email protected]>
+
 	Provide dummy functions if `TT_CONFIG_OPTION_SFNT_NAMES' is not set.
 
 	* src/base/ftsnames.c [!TT_CONFIG_OPTION_SFNT_NAMES]: Implement it.
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -1026,15 +1026,17 @@
 
 #ifdef FT_DEBUG_LEVEL_TRACE
     {
-      const char*  pixel_modes[] = { "none",
-                                     "monochrome bitmap",
-                                     "gray 8-bit bitmap",
-                                     "gray 2-bit bitmap",
-                                     "gray 4-bit bitmap",
-                                     "LCD 8-bit bitmap",
-                                     "vertical LCD 8-bit bitmap",
-                                     "BGRA 32-bit color image bitmap"
-                                   };
+      static const char* const  pixel_modes[] =
+      {
+        "none",
+        "monochrome bitmap",
+        "gray 8-bit bitmap",
+        "gray 2-bit bitmap",
+        "gray 4-bit bitmap",
+        "LCD 8-bit bitmap",
+        "vertical LCD 8-bit bitmap",
+        "BGRA 32-bit color image bitmap"
+      };
 
 
       FT_TRACE5(( "FT_Load_Glyph: index %d, flags 0x%x\n",