summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-01-12 09:35:00 -0800
committerKeith Packard <keithp@keithp.com>2014-01-12 22:16:54 -0800
commit750738774030a99562e209d0784e96d4e5b7199a (patch)
tree028726edd80aa0021125b147e33ec7aac1a5f462
parent8f21dfeba29d7369316343ca8baef39e448abc97 (diff)
fb: Clear invalid plane mask bits in GetImage
Anything outside of the depth should not end up in the resulting image. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--fb/fbimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fb/fbimage.c b/fb/fbimage.c
index 59daa21bb..75e38c291 100644
--- a/fb/fbimage.c
+++ b/fb/fbimage.c
@@ -260,6 +260,7 @@ fbGetImage(DrawablePtr pDrawable,
}
else {
dstStride = BitmapBytePad(w) / sizeof(FbStip);
+ planeMask &= FbFullMask(pDrawable->depth);
fbBltPlane(src + (y + srcYoff) * srcStride,
srcStride,
(x + srcXoff) * srcBpp,