diff options
| author | Tim Wiederhake <twied@gmx.net> | 2011-01-25 22:39:00 +0100 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2011-01-25 16:42:16 -0500 |
| commit | 0fe0eb330c060451b81d87e830ba0f971f2fb093 (patch) | |
| tree | b72ad142b0aa6de73ad1bfdc591550714b788885 /compositor | |
| parent | Add gio for view fixes (diff) | |
| download | wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar.gz wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar.bz2 wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar.lz wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar.xz wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.tar.zst wayland-0fe0eb330c060451b81d87e830ba0f971f2fb093.zip | |
Screenshots were upside down
Diffstat (limited to 'compositor')
| -rw-r--r-- | compositor/screenshooter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compositor/screenshooter.c b/compositor/screenshooter.c index c0757db..53ed931 100644 --- a/compositor/screenshooter.c +++ b/compositor/screenshooter.c @@ -34,7 +34,7 @@ screenshooter_shoot(struct wl_client *client, struct wl_screenshooter *shooter) struct wlsc_compositor *ec = shooter->ec; struct wlsc_output *output; char buffer[256]; - GdkPixbuf *pixbuf, *normal; + GdkPixbuf *pixbuf; GError *error = NULL; unsigned char *data; int i, j; @@ -59,9 +59,7 @@ screenshooter_shoot(struct wl_client *client, struct wl_screenshooter *shooter) pixbuf = gdk_pixbuf_new_from_data(data, GDK_COLORSPACE_RGB, TRUE, 8, output->width, output->height, output->width * 4, NULL, NULL); - normal = gdk_pixbuf_flip(pixbuf, FALSE); - gdk_pixbuf_save(normal, buffer, "png", &error, NULL); - g_object_unref(normal); + gdk_pixbuf_save(pixbuf, buffer, "png", &error, NULL); g_object_unref(pixbuf); free(data); } |
