[Xfce4-commits] <ristretto:ristretto-0.0> Improve image-size calculation (required for cache-size calc)

Stephan Arts noreply at xfce.org
Sun Oct 23 19:14:06 CEST 2011


Updating branch refs/heads/ristretto-0.0
         to 35499a94d25bde24f109593fe41b8f04b358202a (commit)
       from 9a3eeb38527886d402c868969bf102e1a761c0ff (commit)

commit 35499a94d25bde24f109593fe41b8f04b358202a
Author: Stephan Arts <stephan at thor.(none)>
Date:   Fri May 15 19:32:50 2009 +0200

    Improve image-size calculation (required for cache-size calc)

 src/image.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/image.c b/src/image.c
index c454cf8..62d3f3a 100644
--- a/src/image.c
+++ b/src/image.c
@@ -816,10 +816,9 @@ rstto_image_get_size (RsttoImage *image)
     GdkPixbuf *pixbuf = rstto_image_get_pixbuf (image);
     if (pixbuf)
     {
-        gint n_channels = gdk_pixbuf_get_n_channels (pixbuf);
         gint rowstride = gdk_pixbuf_get_rowstride (pixbuf);
         gint height = gdk_pixbuf_get_height (pixbuf);
-        return rowstride * height *n_channels;
+        return rowstride * height;
     }
     return 0;
 }


More information about the Xfce4-commits mailing list