Commit 1bb0e999 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Visual.c: reformat comments

parent 5db6217c
...@@ -112,10 +112,9 @@ Colormap nxagentDefaultVisualColormap(Visual *visual) ...@@ -112,10 +112,9 @@ Colormap nxagentDefaultVisualColormap(Visual *visual)
} }
/* /*
* This is currently unused. It should serve * This is currently unused. It should serve the scope of matching a
* the scope of matching a visual whenever * visual whenever a drawable has a different depth than the real
* a drawable has a different depth than the * display.
* real display.
*/ */
Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth) Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
...@@ -132,9 +131,8 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth) ...@@ -132,9 +131,8 @@ Visual *nxagentVisualFromDepth(ScreenPtr pScreen, int depth)
} }
/* /*
* Create a fake 32 bits depth visual and * Create a fake 32 bits depth visual and initialize it based on the
* initialize it based on the endianness * endianness of the remote display.
* of the remote display.
*/ */
void nxagentInitAlphaVisual(void) void nxagentInitAlphaVisual(void)
...@@ -142,9 +140,8 @@ void nxagentInitAlphaVisual(void) ...@@ -142,9 +140,8 @@ void nxagentInitAlphaVisual(void)
nxagentAlphaVisual.visualid = XAllocID(nxagentDisplay); nxagentAlphaVisual.visualid = XAllocID(nxagentDisplay);
/* /*
* Color masks are referred to bits inside * Color masks are referred to bits inside the pixel. This is
* the pixel. This is independent from the * independent from the endianness.
* endianness.
*/ */
nxagentAlphaVisual.red_mask = 0x00ff0000; nxagentAlphaVisual.red_mask = 0x00ff0000;
......
...@@ -50,17 +50,14 @@ Colormap nxagentDefaultVisualColormap(Visual *visual); ...@@ -50,17 +50,14 @@ Colormap nxagentDefaultVisualColormap(Visual *visual);
nxagentVisualFromID((pScreen), (pScreen) -> rootVisual) nxagentVisualFromID((pScreen), (pScreen) -> rootVisual)
/* /*
* Visual generated by Xorg and Xfree86 at * Visual generated by Xorg and Xfree86 at 16-bit depth differs on the
* 16-bit depth differs on the bits_per_rgb * bits_per_rgb value, so we avoid checking it.
* value, so we avoid checking it.
*/ */
/* /*
* Some Solaris X servers uses the color * Some Solaris X servers uses the color masks inverted, so that the
* masks inverted, so that the red and * red and the blue mask are switched. To reconnect the session on
* the blue mask are switched. To reconnect * this displays, we do a double check, as workaround.
* the session on this displays, we do a
* double check, as workaround.
*/ */
#define nxagentCompareVisuals(v1, v2) \ #define nxagentCompareVisuals(v1, v2) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment