[gcompris/gcomprixogoo] Removed an extra zoom*2 that has nothing to do.



commit 1cd8543dd600837a52bc4ce7a3985d2582d59a5e
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Thu Dec 31 16:30:31 2009 +0100

    Removed an extra zoom*2 that has nothing to do.
    
    This should improve the performance a little bit.

 src/goocanvas/src/goocanvassvg.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/goocanvas/src/goocanvassvg.c b/src/goocanvas/src/goocanvassvg.c
index beafe8f..588e23e 100644
--- a/src/goocanvas/src/goocanvassvg.c
+++ b/src/goocanvas/src/goocanvassvg.c
@@ -113,7 +113,6 @@ _search_limits(GooCanvasSvg *canvas_svg,
 static void _init_surface(GooCanvasSvg *canvas_svg,
 			  RsvgHandle *svg_handle, double zoom)
 {
-  zoom *= 2;
   g_assert(svg_handle);
   RsvgDimensionData dimension_data;
   rsvg_handle_get_dimensions (svg_handle, &dimension_data);
@@ -147,7 +146,7 @@ static void _init_surface(GooCanvasSvg *canvas_svg,
   int stride = cairo_image_surface_get_stride(cst);
 
   /* Search first the top left / right limits first */
-  _search_limits(canvas_svg, data, stride, stride/4);
+  _search_limits(canvas_svg, data, stride, canvas_svg->width);
   if ( canvas_svg->x1 != 0 ||
        canvas_svg->x2 != canvas_svg->width ||
        canvas_svg->y1 != 0 ||



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]