freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master 8439fd6: * graph/x11/grx11.c (gr_x11_surface_{i


From: Werner Lemberg
Subject: [freetype2-demos] master 8439fd6: * graph/x11/grx11.c (gr_x11_surface_{init, done}): Use DefaultGC.
Date: Fri, 7 Oct 2022 22:59:21 -0400 (EDT)

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

    * graph/x11/grx11.c (gr_x11_surface_{init,done}): Use DefaultGC.
---
 graph/x11/grx11.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/graph/x11/grx11.c b/graph/x11/grx11.c
index 2cc3d19..441be17 100644
--- a/graph/x11/grx11.c
+++ b/graph/x11/grx11.c
@@ -972,8 +972,6 @@
 
     if ( display )
     {
-      XFreeGC( display, surface->gc );
-
       if ( surface->ximage )
       {
         if ( !surface->convert )
@@ -1433,8 +1431,7 @@
 
       XMapWindow( display, surface->win );
 
-      surface->gc = XCreateGC( display, surface->win,
-                               0L, NULL );
+      surface->gc = DefaultGC( display, screen );
 
       XSetWMProperties( display, surface->win, &xtp, &xtp,
                         NULL, 0, NULL, NULL, NULL );



reply via email to

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