aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/mi
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-05-01 01:22:39 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-06-11 12:09:27 +0200
commit9e051eab0fee0915702c6752669542c7cc40de18 (patch)
treed5f97518024ef619cccaa4549efd8897d303c077 /nx-X11/programs/Xserver/mi
parent39ff69c72554cc3e50a452f0ca3a707a4d542377 (diff)
downloadnx-libs-9e051eab0fee0915702c6752669542c7cc40de18.tar.gz
nx-libs-9e051eab0fee0915702c6752669542c7cc40de18.tar.bz2
nx-libs-9e051eab0fee0915702c6752669542c7cc40de18.zip
NXmiexpose.c: use upstream version of miPaintWindows()
miPaintWindow() was identical to the version in miexpose.c except for some unitialized variable fixes. As these also should be in upstream code we add them there (Note: Xorg never fixed this but totally rewrote the miPaintWindow() later on.) This allows us to totally drop our special version of miPaintWindow().
Diffstat (limited to 'nx-X11/programs/Xserver/mi')
-rw-r--r--nx-X11/programs/Xserver/mi/miexpose.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/mi/miexpose.c b/nx-X11/programs/Xserver/mi/miexpose.c
index 520b0ed7a..d2bf93c6c 100644
--- a/nx-X11/programs/Xserver/mi/miexpose.c
+++ b/nx-X11/programs/Xserver/mi/miexpose.c
@@ -626,7 +626,6 @@ tossGC (
return 0;
}
-#ifndef NXAGENT_SERVER
void
miPaintWindow(pWin, prgn, what)
register WindowPtr pWin;
@@ -652,8 +651,8 @@ int what;
ChangeGCVal newValues [COUNT_BITS] = {{ 0 }};
BITS32 gcmask, index, mask;
- RegionRec prgnWin;
- DDXPointRec oldCorner;
+ RegionRec prgnWin = {0};
+ DDXPointRec oldCorner = {0};
BoxRec box = {0};
WindowPtr pBgWin;
GCPtr pGC;
@@ -881,7 +880,6 @@ int what;
FreeScratchGC(pGC);
}
}
-#endif
/* MICLEARDRAWABLE -- sets the entire drawable to the background color of
* the GC. Useful when we have a scratch drawable and need to initialize