aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-08-10 23:56:22 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-27 08:12:23 +0200
commitc610d706b44a48fbae633ead3e241ce57c31ccc6 (patch)
tree82de42eaa0655cf678e03b431fda9e5ab21622cb
parentd7d205c0d83844cb23e75d09c2b683f15fff72a9 (diff)
downloadnx-libs-c610d706b44a48fbae633ead3e241ce57c31ccc6.tar.gz
nx-libs-c610d706b44a48fbae633ead3e241ce57c31ccc6.tar.bz2
nx-libs-c610d706b44a48fbae633ead3e241ce57c31ccc6.zip
NXwindow.c: simplify window background code
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXwindow.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c b/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
index f2b10fe45..f67295c43 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXwindow.c
@@ -249,18 +249,14 @@ InitRootWindow(WindowPtr pWin)
pWin->optional->cursor = rootCursor;
rootCursor->refcnt++;
-#ifdef NXAGENT_SPLASH
- if (blackRoot)
- pWin->background.pixel = pScreen->blackPixel;
- else
- pWin->background.pixel = pScreen->whitePixel;
- backFlag |= CWBackPixel;
-#else
+#ifndef NXAGENT_SPLASH
if (!blackRoot && !whiteRoot) {
MakeRootTile(pWin);
backFlag |= CWBackPixmap;
}
- else {
+ else
+#else
+ {
if (blackRoot)
pWin->background.pixel = pScreen->blackPixel;
else