[PATCH 2/4] fb: Clear invalid plane mask bits in GetImage

Alex Deucher alexdeucher at gmail.com
Tue Jan 14 06:05:57 PST 2014


On Mon, Jan 13, 2014 at 9:00 PM, Keith Packard <keithp at keithp.com> wrote:
> Anything outside of the depth should not end up in the resulting image.
>
> Signed-off-by: Keith Packard <keithp at keithp.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  fb/fbimage.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/fb/fbimage.c b/fb/fbimage.c
> index 59daa21..75e38c2 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,
> --
> 1.8.5.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list