diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-12-28 18:46:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2011-12-28 18:46:39 +0100 |
commit | c29053f82cbea5f2704d99c4d5e8afe0329e5cbe (patch) | |
tree | 37f025269eb5df59a49c3b6971090f8c89b089bd /nx-X11/programs/Xserver/hw/nxagent/Colormap.c | |
parent | e01b9177b41f7d27a934d41fa38d550fa0026b45 (diff) | |
download | nx-libs-c29053f82cbea5f2704d99c4d5e8afe0329e5cbe.tar.gz nx-libs-c29053f82cbea5f2704d99c4d5e8afe0329e5cbe.tar.bz2 nx-libs-c29053f82cbea5f2704d99c4d5e8afe0329e5cbe.zip |
Imported nxagent-3.5.0-7.tar.gznxagent/3.5.0-7
Summary: Imported nxagent-3.5.0-7.tar.gz
Keywords:
Imported nxagent-3.5.0-7.tar.gz
into Git repository
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Colormap.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Colormap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Colormap.c b/nx-X11/programs/Xserver/hw/nxagent/Colormap.c index b0f0507b5..fbe52db9c 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Colormap.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Colormap.c @@ -69,8 +69,9 @@ Bool nxagentCreateColormap(ColormapPtr pCmap) Visual *visual; int class; - #ifdef TEST - fprintf(stderr, "nxagentCreateColormap: Going to create new colormap.\n"); + #if defined(DEBUG) || defined(DEBUG_COLORMAP) + fprintf(stderr, "nxagentCreateColormap: Going to create new colormap with " + " visual [%lu].\n", pCmap->pVisual); #endif pVisual = pCmap->pVisual; @@ -511,6 +512,11 @@ Bool nxagentCreateDefaultColormap(ScreenPtr pScreen) unsigned short zero = 0, ones = 0xFFFF; Pixel wp, bp; + #if defined(DEBUG) || defined(DEBUG_COLORMAP) + fprintf(stderr, "Debug: Searching for the root visual [%lu].\n", + pScreen->rootVisual); + #endif + for (pVisual = pScreen->visuals; pVisual->vid != pScreen->rootVisual; pVisual++); |