diff options
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++); |