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:
e565b40
)
screenshoter: don't use hardcoded bpp value
author
Vasily Khoruzhick
<anarsoul@gmail.com>
Sun, 6 Jan 2013 09:12:40 +0000
(12:12 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 7 Jan 2013 14:40:42 +0000
(09:40 -0500)
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
840dfb8
..
662aad4
100644
(file)
--- a/
src/screenshooter.c
+++ b/
src/screenshooter.c
@@
-103,7
+103,7
@@
screenshooter_frame_notify(struct wl_listener *listener, void *data)
output->disable_planes--;
wl_list_remove(&listener->link);
- stride = l->buffer->width *
4
;
+ stride = l->buffer->width *
(PIXMAN_FORMAT_BPP(output->compositor->read_format) / 8)
;
pixels = malloc(stride * l->buffer->height);
if (pixels == NULL) {