aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/fb/fbtrap.c
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:47:37 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:47:37 +0200
commit55a9311fb1df3b58f73efa575318e7341243392b (patch)
tree0444b91d9a638c1dffd5808b28a4d2c235ccd95f /nx-X11/programs/Xserver/fb/fbtrap.c
parentaefdef62fc10335a94cbc5bf3cb86b24c8bc1c9f (diff)
downloadnx-libs-55a9311fb1df3b58f73efa575318e7341243392b.tar.gz
nx-libs-55a9311fb1df3b58f73efa575318e7341243392b.tar.bz2
nx-libs-55a9311fb1df3b58f73efa575318e7341243392b.zip
Imported nx-X11-3.3.0-5.tar.gznx-X11/3.3.0-5
Summary: Imported nx-X11-3.3.0-5.tar.gz Keywords: Imported nx-X11-3.3.0-5.tar.gz into Git repository
Diffstat (limited to 'nx-X11/programs/Xserver/fb/fbtrap.c')
-rw-r--r--nx-X11/programs/Xserver/fb/fbtrap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/fb/fbtrap.c b/nx-X11/programs/Xserver/fb/fbtrap.c
index 39483d8cd..1940bc209 100644
--- a/nx-X11/programs/Xserver/fb/fbtrap.c
+++ b/nx-X11/programs/Xserver/fb/fbtrap.c
@@ -115,6 +115,9 @@ fbRasterizeTrapezoid (PicturePtr pPicture,
RenderEdge l, r;
xFixed t, b;
+ if (!xTrapezoidValid (trap))
+ return;
+
fbGetDrawable (pPicture->pDrawable, buf, stride, bpp, pxoff, pyoff);
width = pPicture->pDrawable->width;