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>
dev
Vasily Khoruzhick 12 years ago committed by Kristian Høgsberg
parent 094ca1d1ed
commit 2617185b74
  1. 2
      src/screenshooter.c

@ -124,8 +124,10 @@ screenshooter_frame_notify(struct wl_listener *listener, void *data)
switch (output->compositor->read_format) { switch (output->compositor->read_format) {
case PIXMAN_a8r8g8b8: case PIXMAN_a8r8g8b8:
case PIXMAN_x8r8g8b8:
copy_bgra_yflip(d, s, output->current->height, stride); copy_bgra_yflip(d, s, output->current->height, stride);
break; break;
case PIXMAN_x8b8g8r8:
case PIXMAN_a8b8g8r8: case PIXMAN_a8b8g8r8:
copy_rgba_yflip(d, s, output->current->height, stride); copy_rgba_yflip(d, s, output->current->height, stride);
break; break;

Loading…
Cancel
Save