summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-04-07 15:33:58 +0900
committerCedric Bail <cedric.bail@free.fr>2013-04-07 15:33:58 +0900
commitd27bdb4726aece331134493754549b6341dcd178 (patch)
treef2472693e1bd0875c4f51b071bdf328ff920c944
parent7739267d8b07b9429f16a952d1ae6014cb943637 (diff)
downloadefl-d27bdb4726aece331134493754549b6341dcd178.tar.gz
evas: small reorder for a little bit of memory win.
-rw-r--r--src/lib/evas/canvas/evas_object_image.c9
1 files 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 190a89224f..52e1e38b2a 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
};