summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_image_load.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-03-17 14:52:47 +0900
committerCedric BAIL <cedric.bail@free.fr>2014-04-01 22:00:14 +0900
commit05239d8dd24da4ec296b356adfb12d76a9130f6d (patch)
tree7b45407f332b5a29b4273e21f9c211aaa89dafe0 /src/lib/evas/common/evas_image_load.c
parentb56d7bba605d2bd156f438d6dd2da6818474bde3 (diff)
evas: let loader specify there prefered color space.
Diffstat (limited to 'src/lib/evas/common/evas_image_load.c')
-rw-r--r--src/lib/evas/common/evas_image_load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index 52d3295ec4..133f7399da 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -225,6 +225,8 @@ _evas_image_file_header(Evas_Module *em, Image_Entry *ie, int *error)
225 ie->h = property.h; 225 ie->h = property.h;
226 ie->scale = property.scale; 226 ie->scale = property.scale;
227 ie->flags.alpha = property.alpha; 227 ie->flags.alpha = property.alpha;
228 if (property.cspaces)
229 ie->cspaces = property.cspaces;
228 if (ie->load_opts.orientation && 230 if (ie->load_opts.orientation &&
229 ie->load_opts.degree != 0) 231 ie->load_opts.degree != 0)
230 ie->flags.rotated = EINA_TRUE; 232 ie->flags.rotated = EINA_TRUE;
@@ -413,6 +415,7 @@ evas_common_load_rgba_image_data_from_file(Image_Entry *ie)
413 property.rotated = ie->flags.rotated; 415 property.rotated = ie->flags.rotated;
414 property.premul = EINA_FALSE; 416 property.premul = EINA_FALSE;
415 property.alpha_sparse = EINA_FALSE; 417 property.alpha_sparse = EINA_FALSE;
418 property.cspace = ie->space;
416 419
417 evas_cache_image_surface_alloc(ie, ie->w, ie->h); 420 evas_cache_image_surface_alloc(ie, ie->w, ie->h);
418 421