[Swfdec] test/swfdec-extract.c

Benjamin Otte company at kemper.freedesktop.org
Thu Sep 13 12:38:58 PDT 2007


 test/swfdec-extract.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 3da08c899f62a2f814dcacabb3214870578ccabc (from 9c4a5df4d39d861247676283426891e29bfe9fe2)
Author: Benjamin Otte <otte at gnome.org>
Date:   Thu Sep 13 21:38:51 2007 +0200

    scale by a double, not an int
    
    This caused all extraction to fail.

diff --git a/test/swfdec-extract.c b/test/swfdec-extract.c
index 73e49fa..4c79a7f 100644
--- a/test/swfdec-extract.c
+++ b/test/swfdec-extract.c
@@ -201,7 +201,7 @@ export_graphic (SwfdecGraphic *graphic, 
   cr = cairo_create (surface);
   cairo_translate (cr, - floor (graphic->extents.x0 / SWFDEC_TWIPS_SCALE_FACTOR),
     - floor (graphic->extents.y0 / SWFDEC_TWIPS_SCALE_FACTOR));
-  cairo_scale (cr, 1 / SWFDEC_TWIPS_SCALE_FACTOR, 1 / SWFDEC_TWIPS_SCALE_FACTOR);
+  cairo_scale (cr, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR, 1.0 / SWFDEC_TWIPS_SCALE_FACTOR);
   swfdec_graphic_render (graphic, cr, &trans, &graphic->extents, TRUE);
   cairo_show_page (cr);
   cairo_destroy (cr);


More information about the Swfdec mailing list