[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master ee9de68: * graph/x11/grx11.c (gr_x11_surface_in
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master ee9de68: * graph/x11/grx11.c (gr_x11_surface_init): Ignore border and colormap. |
Date: |
Fri, 7 Oct 2022 12:29:10 -0400 (EDT) |
branch: master
commit ee9de687c62b83d5e1285508acfacfcfd1053971
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/x11/grx11.c (gr_x11_surface_init): Ignore border and colormap.
The colormap is unused. The border is set by a window manager.
---
graph/x11/grx11.c | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/graph/x11/grx11.c b/graph/x11/grx11.c
index 6926ddc..2cc3d19 100644
--- a/graph/x11/grx11.c
+++ b/graph/x11/grx11.c
@@ -950,7 +950,6 @@
Display* display;
Window win;
Visual* visual;
- Colormap colormap;
GC gc;
Atom wm_delete_window;
@@ -1419,26 +1418,13 @@
xswa.event_mask = ExposureMask | VisibilityChangeMask |
KeyPressMask | StructureNotifyMask ;
- if ( surface->visual == DefaultVisual( display, screen ) )
- surface->colormap = DefaultColormap( display, screen );
- else
- {
- xswa_mask |= CWBorderPixel | CWColormap;
- xswa.border_pixel = BlackPixel( display, screen );
- xswa.colormap = XCreateColormap( display,
- RootWindow( display, screen ),
- surface->visual,
- AllocNone );
- surface->colormap = xswa.colormap;
- }
-
surface->win = XCreateWindow( display,
RootWindow( display, screen ),
0,
0,
(unsigned int)bitmap->width,
(unsigned int)bitmap->rows,
- 10,
+ 0,
x11dev.format->x_depth,
InputOutput,
surface->visual,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master ee9de68: * graph/x11/grx11.c (gr_x11_surface_init): Ignore border and colormap.,
Werner Lemberg <=