diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2013-01-06 12:12:41 +0300 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-01-07 09:40:42 -0500 |
commit | 2617185b74c97fd32b46a730fff16eb2b0eea646 (patch) | |
tree | 062f8304422395c0de63cac4dc62125083c71253 /src/screenshooter.c | |
parent | 094ca1d1edb393ab3797d6e922e7c8c54d3defcf (diff) | |
download | weston-2617185b74c97fd32b46a730fff16eb2b0eea646.tar.gz |
screenshoter: add cases for x8r8g8b8 and x8b8g8r8 formats
These formats are used by pixman renderer for framebuffer surface, without
this patch screenshoter produces empty image.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Diffstat (limited to 'src/screenshooter.c')
-rw-r--r-- | src/screenshooter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/screenshooter.c b/src/screenshooter.c index 662aad4f..4f6599f9 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; |