freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master cc30d687 1/2: * src/ftmulti.c (main, Init_Displ


From: Werner Lemberg
Subject: [freetype2-demos] master cc30d687 1/2: * src/ftmulti.c (main, Init_Display): Clean up GUI setup.
Date: Mon, 13 Feb 2023 00:49:48 -0500 (EST)

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

    * src/ftmulti.c (main, Init_Display): Clean up GUI setup.
---
 src/ftmulti.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/ftmulti.c b/src/ftmulti.c
index b6910341..0b842de6 100644
--- a/src/ftmulti.c
+++ b/src/ftmulti.c
@@ -305,6 +305,8 @@
     bit = (grBitmap*)surface;
 
     fore_color = grFindColor( bit, 255, 255, 255, 255 );  /* white */
+
+    grSetTitle( surface, "FreeType Variations Viewer - press ? for help" );
   }
 
 
@@ -904,7 +906,6 @@
   {
     int    old_ptsize, orig_ptsize, file;
     int    first_glyph = 0;
-    int    XisSetup = 0;
     int    option;
     int    file_loaded;
 
@@ -1108,13 +1109,9 @@
 
   Display_Font:
     /* initialize graphics if needed */
-    if ( !XisSetup )
-    {
-      XisSetup = 1;
+    if ( !surface )
       Init_Display();
-    }
 
-    grSetTitle( surface, "FreeType Glyph Viewer - press ? for help" );
     old_ptsize = ptsize;
 
     if ( file_loaded >= 1 )



reply via email to

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