diff options
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Display.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Display.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Display.c b/nx-X11/programs/Xserver/hw/nxagent/Display.c index 85683503b..599b335f6 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Display.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c @@ -169,7 +169,6 @@ Pixmap nxagentIconPixmap; Pixmap nxagentIconShape; Bool useXpmIcon = False; -unsigned int nxagentLogoColor(unsigned int value); Bool nxagentMakeIcon(Display *display, Pixmap *nxIcon, Pixmap *nxMask); @@ -185,13 +184,6 @@ static int nxagentInitAndCheckVisuals(int flexibility); static int nxagentCheckForColormapsCompatibility(int flexibility); /* - * FIXME: These must definitely become local. - */ - -XVisualInfo pV; -unsigned int r, b, g, or, ob, og, off; - -/* * Save Internal implementation Also called in Reconnect.c. */ @@ -217,23 +209,6 @@ int nxagentServerOrder() return MSBFirst; } -unsigned int nxagentLogoColor(unsigned int value) -{ - /* - * Takes a color value in RGB24 (0xff0000, 0x00ff00, - * 0x0000ff) and converts it into an equivalent for - * the current visual. - */ - - int cr=0, cg=0, cb=0; - - cr = (value >> or) &r; - cg = (value >> (og - 8)) &g; - cb = (value >> (ob - 16)) &b; - - return (cr | cg | cb); -} - /* * FIXME: This error handler is not printing anything * in the session log. This is OK once the session is @@ -407,7 +382,7 @@ static void nxagentSigchldHandler(int signal) * Leave the other children unaffected. */ - if (pid == 0 && nxagentRootlessDialogPid) + if (nxagentRootlessDialogPid) { pid = waitpid(nxagentRootlessDialogPid, &status, options); @@ -1412,12 +1387,6 @@ FIXME: Use of nxagentParentWindow is strongly deprecated. DefaultScreen(nxagentDisplay) ); - pV = nxagentVisuals[nxagentDefaultVisualIndex]; - - r = pV.red_mask; - g = pV.green_mask; - b = pV.blue_mask; - nxagentLogoBlack = 0x000000; nxagentLogoRed = 0xff0000; nxagentLogoWhite = 0xffffff; @@ -2880,12 +2849,6 @@ Bool nxagentReconnectDisplay(void *p0) nxagentLogoDepth = DefaultDepth(nxagentDisplay, DefaultScreen(nxagentDisplay)); - pV = nxagentVisuals[nxagentDefaultVisualIndex]; - - r = pV.red_mask; - g = pV.green_mask; - b = pV.blue_mask; - nxagentLogoBlack = 0x000000; nxagentLogoRed = 0xff0000; nxagentLogoWhite = 0xffffff; |