freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 1740b4c 1/2: [ftgrid] Minor.


From: Alexei Podtelezhnikov
Subject: [freetype2-demos] master 1740b4c 1/2: [ftgrid] Minor.
Date: Sat, 3 Jun 2017 23:49:03 -0400 (EDT)

branch: master
commit 1740b4cf31cb40c29ef613073ca9a85b82d90a9c
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    [ftgrid] Minor.
    
    * src/ftgrid.c (grid_status_draw_outline): Move the stroker
    initialization from here...
    (main): ... to here.
---
 ChangeLog    |  8 ++++++++
 src/ftgrid.c | 13 +++++--------
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 48e7ab6..dce455a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2017-06-03  Alexei Podtelezhnikov  <address@hidden>
 
+       [ftgrid] Minor.
+
+       * src/ftgrid.c (grid_status_draw_outline): Move the stroker
+       initialization from here...
+       (main): ... to here.
+
+2017-06-03  Alexei Podtelezhnikov  <address@hidden>
+
        [ftview] Clean up charmap handling.
 
        * src/ftcommon.h (FT_ENCODING_ORDER): Introduce this special encoding
diff --git a/src/ftgrid.c b/src/ftgrid.c
index bbca265..98cd2a5 100644
--- a/src/ftgrid.c
+++ b/src/ftgrid.c
@@ -645,14 +645,6 @@
     int           oy    = st->y_origin;
 
 
-    if ( st->stroker == NULL )
-    {
-      FT_Stroker_New( handle->library, &st->stroker );
-
-      FT_Stroker_Set( st->stroker, 32, FT_STROKER_LINECAP_BUTT,
-                      FT_STROKER_LINEJOIN_BEVEL, 0x20000 );
-    }
-
     FTDemo_Get_Size( handle, &size );
 
 #ifdef FT_DEBUG_AUTOFIT
@@ -1915,6 +1907,11 @@
 
     FT_Library_SetLcdFilter( handle->library, status.lcd_filter );
 
+    FT_Stroker_New( handle->library, &status.stroker );
+
+    FT_Stroker_Set( status.stroker, 32, FT_STROKER_LINECAP_BUTT,
+                      FT_STROKER_LINEJOIN_BEVEL, 0x20000 );
+
     display = FTDemo_Display_New( gr_pixel_mode_rgb24,
                                   status.width, status.height );
     if ( !display )



reply via email to

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