Commit 817c3c6f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

NXwindow.c: simplify window background code

parent d3869aa5
...@@ -249,18 +249,14 @@ InitRootWindow(WindowPtr pWin) ...@@ -249,18 +249,14 @@ InitRootWindow(WindowPtr pWin)
pWin->optional->cursor = rootCursor; pWin->optional->cursor = rootCursor;
rootCursor->refcnt++; rootCursor->refcnt++;
#ifdef NXAGENT_SPLASH #ifndef NXAGENT_SPLASH
if (blackRoot)
pWin->background.pixel = pScreen->blackPixel;
else
pWin->background.pixel = pScreen->whitePixel;
backFlag |= CWBackPixel;
#else
if (!blackRoot && !whiteRoot) { if (!blackRoot && !whiteRoot) {
MakeRootTile(pWin); MakeRootTile(pWin);
backFlag |= CWBackPixmap; backFlag |= CWBackPixmap;
} }
else { else
#else
{
if (blackRoot) if (blackRoot)
pWin->background.pixel = pScreen->blackPixel; pWin->background.pixel = pScreen->blackPixel;
else else
......
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