[PATCH RFC 2/4] screenshoter: add cases for x8r8g8b8 and x8b8g8r8 formats
Kristian Høgsberg
hoegsberg at gmail.com
Mon Jan 7 06:51:49 PST 2013
On Sun, Jan 06, 2013 at 12:12:41PM +0300, Vasily Khoruzhick wrote:
> These formats are used by pixman renderer for framebuffer surface, without
> this patch screenshoter produces empty image.
Makes sense, applied.
Kristian
> Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
> ---
> src/screenshooter.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/screenshooter.c b/src/screenshooter.c
> index 662aad4..4f6599f 100644
> --- a/src/screenshooter.c
> +++ b/src/screenshooter.c
> @@ -124,8 +124,10 @@ screenshooter_frame_notify(struct wl_listener *listener, void *data)
>
> switch (output->compositor->read_format) {
> case PIXMAN_a8r8g8b8:
> + case PIXMAN_x8r8g8b8:
> copy_bgra_yflip(d, s, output->current->height, stride);
> break;
> + case PIXMAN_x8b8g8r8:
> case PIXMAN_a8b8g8r8:
> copy_rgba_yflip(d, s, output->current->height, stride);
> break;
> --
> 1.8.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list