diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-26 10:11:32 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-05-27 14:46:30 +0100 |
commit | 1f0bdbb5eb8e349f98aa312c3e20704701a7606d (patch) | |
tree | 8409b4fe8b6b00299b618ba09e1523fc4d1dbcb1 /src/i830_uxa.c | |
parent | 5d98c28513bbfdc8c618688df961a122197bdc3c (diff) |
i830: Skip an empty fill.
In the extremely unlikely event that the higher layer erroneous gave us
an empty fill, skip it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 309bd3a29943ef7502d40c67be49c19a59b6d1a2)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'src/i830_uxa.c')
-rw-r--r-- | src/i830_uxa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_uxa.c b/src/i830_uxa.c index 9377f586..bbb61698 100644 --- a/src/i830_uxa.c +++ b/src/i830_uxa.c @@ -275,6 +275,9 @@ static void i830_uxa_solid(PixmapPtr pixmap, int x1, int y1, int x2, int y2) if (y2 > pixmap->drawable.height) y2 = pixmap->drawable.height; + if (x2 <= x1 || y2 <= y1) + return; + pitch = i830_pixmap_pitch(pixmap); { |