freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * graph/x11/grx11.c (gr_x11_surfa


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * graph/x11/grx11.c (gr_x11_surface_{init,done}): Use DefaultGC.
Date: Sat, 08 Oct 2022 02:59:13 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • 8439fd65
    by Alexei Podtelezhnikov at 2022-10-07T22:55:41-04:00
    * graph/x11/grx11.c (gr_x11_surface_{init,done}): Use DefaultGC.
    

1 changed file:

Changes:

  • graph/x11/grx11.c
    ... ... @@ -972,8 +972,6 @@
    972 972
     
    
    973 973
         if ( display )
    
    974 974
         {
    
    975
    -      XFreeGC( display, surface->gc );
    
    976
    -
    
    977 975
           if ( surface->ximage )
    
    978 976
           {
    
    979 977
             if ( !surface->convert )
    
    ... ... @@ -1433,8 +1431,7 @@
    1433 1431
     
    
    1434 1432
           XMapWindow( display, surface->win );
    
    1435 1433
     
    
    1436
    -      surface->gc = XCreateGC( display, surface->win,
    
    1437
    -                               0L, NULL );
    
    1434
    +      surface->gc = DefaultGC( display, screen );
    
    1438 1435
     
    
    1439 1436
           XSetWMProperties( display, surface->win, &xtp, &xtp,
    
    1440 1437
                             NULL, 0, NULL, NULL, NULL );
    


  • reply via email to

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