screenshoter: Make recorder handle PIXMAN_x8r8g8b8

This is what the pixman renderer reports for the read format.
This commit is contained in:
Alexander Larsson 2013-05-29 12:01:32 +02:00 committed by Kristian Høgsberg
parent 690f718834
commit 5576546e3d

View File

@ -465,6 +465,7 @@ weston_recorder_create(struct weston_output *output, const char *filename)
header.magic = WCAP_HEADER_MAGIC;
switch (compositor->read_format) {
case PIXMAN_x8r8g8b8:
case PIXMAN_a8r8g8b8:
header.format = WCAP_FORMAT_XRGB8888;
break;