5 |
* This is the driver for displaying inside a window under X11, |
* This is the driver for displaying inside a window under X11, |
6 |
* used by the graphics utility of the FreeType test suite. |
* used by the graphics utility of the FreeType test suite. |
7 |
* |
* |
8 |
* Copyright 1999-2000, 2001, 2002 by Antoine Leca, David Turner |
* Copyright 1999-2000, 2001, 2002, 2005 by Antoine Leca, David Turner |
9 |
* David Turner, Robert Wilhelm, and Werner Lemberg. |
* David Turner, Robert Wilhelm, and Werner Lemberg. |
10 |
* |
* |
11 |
* This file is part of the FreeType project, and may only be used |
* This file is part of the FreeType project, and may only be used |
1348 |
XSetWindowAttributes xswa; |
XSetWindowAttributes xswa; |
1349 |
long xswa_mask = CWBackPixel | CWEventMask | CWCursor; |
long xswa_mask = CWBackPixel | CWEventMask | CWCursor; |
1350 |
|
|
1351 |
|
xswa.border_pixel = BlackPixel( display, screen); |
1352 |
|
|
1353 |
if (surface->visual == DefaultVisual( display, screen ) ) |
if (surface->visual == DefaultVisual( display, screen ) ) |
1354 |
{ |
{ |
1355 |
xswa.background_pixel = WhitePixel( display, screen ); |
xswa.background_pixel = WhitePixel( display, screen ); |
1356 |
surface->colormap = DefaultColormap( display, screen ); |
surface->colormap = DefaultColormap( display, screen ); |
1357 |
} |
} |
1358 |
else |
else |