freetype-commit
[Top][All Lists]
Advanced

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

[freetype2-demos] master cc63eaf 1/2: * graph/x11/grx11.c (gr_x11_surfac


From: Alexei Podtelezhnikov
Subject: [freetype2-demos] master cc63eaf 1/2: * graph/x11/grx11.c (gr_x11_surface_init): Remove some settings.
Date: Mon, 1 Jun 2020 00:03:32 -0400 (EDT)

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

    * graph/x11/grx11.c (gr_x11_surface_init): Remove some settings.
---
 ChangeLog         | 4 ++++
 graph/x11/grx11.c | 7 ++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 11ddc5e..f1add51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
+       * graph/x11/grx11.c (gr_x11_surface_init): Remove some settings.
+
+2020-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
        [graph/win32] Miscellaneous clean-ups.
 
        * graph/win32/grwin32.c
diff --git a/graph/x11/grx11.c b/graph/x11/grx11.c
index e65063f..a7395d3 100644
--- a/graph/x11/grx11.c
+++ b/graph/x11/grx11.c
@@ -1380,8 +1380,7 @@ typedef  unsigned long   uint32;
 
     {
       XTextProperty         xtp  = { (unsigned char*)"FreeType", 31, 8, 8 };
-      XSizeHints            xsh  = { };
-      XSetWindowAttributes  xswa = { };
+      XSetWindowAttributes  xswa;
       unsigned long         xswa_mask = CWEventMask | CWCursor;
 
       pid_t                 pid;
@@ -1421,11 +1420,9 @@ typedef  unsigned long   uint32;
 
       surface->gc = XCreateGC( display, surface->win,
                                0L, NULL );
-      XSetForeground( display, surface->gc, xswa.border_pixel     );
-      XSetBackground( display, surface->gc, xswa.background_pixel );
 
       XSetWMProperties( display, surface->win, &xtp, &xtp,
-                        NULL, 0, &xsh, NULL, NULL );
+                        NULL, 0, NULL, NULL, NULL );
 
       surface->wm_delete_window = XInternAtom( display,
                                                "WM_DELETE_WINDOW", False );



reply via email to

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