projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
094ca1d
)
screenshoter: add cases for x8r8g8b8 and x8b8g8r8 formats
author
Vasily Khoruzhick
<anarsoul@gmail.com>
Sun, 6 Jan 2013 09:12:41 +0000
(12:12 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 7 Jan 2013 14:40:42 +0000
(09:40 -0500)
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>
src/screenshooter.c
patch
|
blob
|
history
diff --git
a/src/screenshooter.c
b/src/screenshooter.c
index
662aad4
..
4f6599f
100644
(file)
--- 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;