cedric pushed a commit to branch master.
commit d27bdb4726aece331134493754549b6341dcd178
Author: Cedric Bail <[email protected]>
Date: Sun Apr 7 15:33:58 2013 +0900
evas: small reorder for a little bit of memory win.
---
src/lib/evas/canvas/evas_object_image.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/lib/evas/canvas/evas_object_image.c
b/src/lib/evas/canvas/evas_object_image.c
index 190a892..52e1e38 100644
--- a/src/lib/evas/canvas/evas_object_image.c
+++ b/src/lib/evas/canvas/evas_object_image.c
@@ -76,9 +76,9 @@ struct _Evas_Object_Image_State
short w, h, stride;
} image;
struct {
+ double scale;
short l, r, t, b;
unsigned char fill;
- double scale;
} border;
Evas_Object *source;
@@ -86,9 +86,10 @@ struct _Evas_Object_Image_State
const char *file;
const char *key;
int frame;
- Evas_Colorspace cspace;
int spread;
+ Evas_Colorspace cspace;
+
Eina_Bool smooth_scale : 1;
Eina_Bool has_alpha :1;
Eina_Bool opaque_valid : 1;
@@ -191,12 +192,12 @@ static const Evas_Object_Image_Pixels default_pixels = {
static const Evas_Object_Image_State default_state = {
{ 0, 0, 0, 0 }, // fill
{ 0, 0, 0 }, // image
- { 0, 0, 0, 0, 1, 1.0 }, // border
+ { 1.0, 0, 0, 0, 0, 1 }, // border
NULL, NULL, NULL, NULL,
0,
- EVAS_COLORSPACE_ARGB8888,
EVAS_TEXTURE_REPEAT,
+ EVAS_COLORSPACE_ARGB8888,
EINA_TRUE, EINA_FALSE, EINA_FALSE, EINA_FALSE
};
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html