cedric pushed a commit to branch master.

commit f13a35909be4255888a4f0bd0ee12ddd0843dc7b
Author: Cedric Bail <[email protected]>
Date:   Mon May 20 19:23:36 2013 +0900

    evas: always set degre to zero before using it.
---
 src/lib/evas/canvas/evas_object_image.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/evas/canvas/evas_object_image.c 
b/src/lib/evas/canvas/evas_object_image.c
index 09269e0..5f601e1 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -185,7 +185,7 @@ static const Evas_Object_Func object_func =
 };
 
 static const Evas_Object_Image_Load_Opts default_load_opts = {
-  0, 0, 0, 0, { 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0 }, 0
+  0, 0.0, 0, 0, { 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0 }, 0
 };
 
 static const Evas_Object_Image_Pixels default_pixels = {
@@ -534,6 +534,7 @@ _image_init_set(Eina_File *f, const char *file, const char 
*key,
    lo->scale_load.smooth = o->load_opts->scale_load.smooth;
    lo->scale_load.scale_hint = o->load_opts->scale_load.scale_hint;
    lo->orientation = o->load_opts->orientation;
+   lo->degree = 0;
 }
 
 static void
@@ -3473,6 +3474,7 @@ evas_object_image_load(Evas_Object *eo_obj)
    lo.scale_load.smooth = o->load_opts->scale_load.smooth;
    lo.scale_load.scale_hint = o->load_opts->scale_load.scale_hint;
    lo.orientation = o->load_opts->orientation;
+   lo.degree = 0;
    o->engine_data = obj->layer->evas->engine.func->image_load
       (obj->layer->evas->engine.data.output,
           o->cur->file,

-- 

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may

Reply via email to