summaryrefslogtreecommitdiff
path: root/xserver/mi
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2015-11-07 16:48:54 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2015-11-07 16:48:54 +0000
commit6c07b8ab53c2bbf0feb0afbbe98b33171c7b7872 (patch)
tree35eb85f0db40ffe6e6614d780b3de61b93edb3bc /xserver/mi
parentf4e01ac5608a8dfd9a4ee2f7aa43d28cc1710d81 (diff)
Update to xserver 1.17.4.
tested by naddy@
Diffstat (limited to 'xserver/mi')
-rw-r--r--xserver/mi/miarc.c2
-rw-r--r--xserver/mi/mieq.c2
-rw-r--r--xserver/mi/miexpose.c13
-rw-r--r--xserver/mi/miwideline.c2
4 files changed, 12 insertions, 7 deletions
diff --git a/xserver/mi/miarc.c b/xserver/mi/miarc.c
index e8bc87e3e..d26f67486 100644
--- a/xserver/mi/miarc.c
+++ b/xserver/mi/miarc.c
@@ -1712,7 +1712,7 @@ miGetArcPts(SppArcPtr parc, /* points to an arc */
y1 = y2;
}
/* adjust the last point */
- if (abs(parc->angle2) >= 360.0)
+ if (fabs(parc->angle2) >= 360.0)
poly[cpt + i - 1] = poly[0];
else {
poly[cpt + i - 1].x = (miDcos(st + et) * parc->width / 2.0 + xc);
diff --git a/xserver/mi/mieq.c b/xserver/mi/mieq.c
index 8907a6ea1..b7be193fe 100644
--- a/xserver/mi/mieq.c
+++ b/xserver/mi/mieq.c
@@ -599,7 +599,7 @@ mieqProcessInputEvents(void)
ErrorF("[mi] EQ processing has resumed after %lu dropped events.\n",
(unsigned long) miEventQueue.dropped);
ErrorF
- ("[mi] This may be caused my a misbehaving driver monopolizing the server's resources.\n");
+ ("[mi] This may be caused by a misbehaving driver monopolizing the server's resources.\n");
miEventQueue.dropped = 0;
}
diff --git a/xserver/mi/miexpose.c b/xserver/mi/miexpose.c
index fc4dbc071..3e49f15f4 100644
--- a/xserver/mi/miexpose.c
+++ b/xserver/mi/miexpose.c
@@ -478,14 +478,21 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
else {
PixmapPtr pixmap;
- tile_x_off = drawable->x;
- tile_y_off = drawable->y;
+ fill = pWin->border;
+ solid = pWin->borderIsPixel;
/* servers without pixmaps draw their own borders */
if (!pScreen->GetWindowPixmap)
return;
pixmap = (*pScreen->GetWindowPixmap) ((WindowPtr) drawable);
drawable = &pixmap->drawable;
+
+ while (pWin->backgroundState == ParentRelative)
+ pWin = pWin->parent;
+
+ tile_x_off = pWin->drawable.x;
+ tile_y_off = pWin->drawable.y;
+
#ifdef COMPOSITE
draw_x_off = pixmap->screen_x;
draw_y_off = pixmap->screen_y;
@@ -495,8 +502,6 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what)
draw_x_off = 0;
draw_y_off = 0;
#endif
- fill = pWin->border;
- solid = pWin->borderIsPixel;
}
gcval[0].val = GXcopy;
diff --git a/xserver/mi/miwideline.c b/xserver/mi/miwideline.c
index 452d74fc1..6f0b9bcbd 100644
--- a/xserver/mi/miwideline.c
+++ b/xserver/mi/miwideline.c
@@ -1458,7 +1458,7 @@ miLineArc(DrawablePtr pDraw,
int xorgi = 0, yorgi = 0;
Spans spanRec;
int n;
- PolyEdgeRec edge1, edge2;
+ PolyEdgeRec edge1 = { 0 }, edge2 = { 0 };
int edgey1, edgey2;
Bool edgeleft1, edgeleft2;