evas/cserve2: Fix image load premultiplication
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 25 Jul 2013 03:31:45 +0000 (12:31 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Mon, 28 Oct 2013 06:47:13 +0000 (15:47 +0900)
There was a color problem in elementary_test since elm
sets premul to 0 while expedite sets it to 1 during image load.

src/bin/evas/evas_cserve2_slave.c

index a5a407b..5f9bc32 100644 (file)
@@ -459,7 +459,7 @@ image_load(const char *file, const char *key, const char *shmfile,
    result->w = property.w;
    result->h = property.h;
 
-   if (property.alpha)
+   if (property.alpha && property.premul)
      {
         result->alpha_sparse = evas_cserve2_image_premul_data((unsigned int *) map,
                                                               result->w * result->h);