summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-24 16:15:58 +0200
committerinfirit <[email protected]>2014-07-24 20:17:47 +0200
commit7b82beab02fe02aef58d931dd3bd1cec86420d89 (patch)
tree79579f54428518a6655b8e0ca337378c3e18636c
parent04687fe9975fc1115d9bb1304a80529a130a7c43 (diff)
downloadeom-7b82beab02fe02aef58d931dd3bd1cec86420d89.tar.bz2
eom-7b82beab02fe02aef58d931dd3bd1cec86420d89.tar.xz
Simplify create_surface_from_pixbuf()
Based on eog commit f9ba7f06d73fcd901691e5fa375d87a3a9981cd6 From Claudio Saavedra <[email protected]>
-rw-r--r--src/eom-scroll-view.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index dda4d36..1683806 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -178,13 +178,9 @@ create_surface_from_pixbuf (EomScrollView *view, GdkPixbuf *pixbuf)
{
cairo_surface_t *surface;
cairo_t *cr;
- cairo_format_t format;
- cairo_content_t content;
- format = CAIRO_FORMAT_ARGB32;
- content = CAIRO_CONTENT_COLOR | CAIRO_CONTENT_ALPHA;
surface = gdk_window_create_similar_surface (gtk_widget_get_window (view->priv->display),
- content,
+ CAIRO_CONTENT_COLOR | CAIRO_CONTENT_ALPHA,
gdk_pixbuf_get_width (pixbuf),
gdk_pixbuf_get_height (pixbuf));
cr = cairo_create (surface);