summaryrefslogtreecommitdiff
path: root/src/static_libs/draw
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-23 13:33:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-28 16:40:01 +0900
commitd5b0b1e683310d16855d2183f509b11c4c3b8971 (patch)
treea8db5af3d61b143616940a97a0644fb8d51087aa /src/static_libs/draw
parent078117d367afff6862b72bec8bbc29909b259fd4 (diff)
Evas: Add SW engine map/unmap functions
Also, fix some of the code using them.
Diffstat (limited to 'src/static_libs/draw')
-rw-r--r--src/static_libs/draw/draw_convert.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/static_libs/draw/draw_convert.c b/src/static_libs/draw/draw_convert.c
index 6e1a35b29d..4e29d9ef5b 100644
--- a/src/static_libs/draw/draw_convert.c
+++ b/src/static_libs/draw/draw_convert.c
@@ -431,11 +431,11 @@ efl_draw_convert_func_get(Efl_Gfx_Colorspace srccs, Efl_Gfx_Colorspace dstcs,
431 431
432 EINA_SAFETY_ON_FALSE_RETURN_VAL(srccs != dstcs, NULL); 432 EINA_SAFETY_ON_FALSE_RETURN_VAL(srccs != dstcs, NULL);
433 433
434 if (dstcs != EFL_GFX_COLORSPACE_ARGB8888) 434 if ((dstcs != EFL_GFX_COLORSPACE_ARGB8888) && (srccs != EFL_GFX_COLORSPACE_ARGB8888))
435 to_argb = efl_draw_convert_func_get(srccs, EFL_GFX_COLORSPACE_ARGB8888, &reg1); 435 {
436 436 to_argb = efl_draw_convert_func_get(srccs, EFL_GFX_COLORSPACE_ARGB8888, &reg1);
437 if (srccs != EFL_GFX_COLORSPACE_ARGB8888) 437 from_argb = efl_draw_convert_func_get(EFL_GFX_COLORSPACE_ARGB8888, dstcs, &reg2);
438 from_argb = efl_draw_convert_func_get(EFL_GFX_COLORSPACE_ARGB8888, dstcs, &reg2); 438 }
439 439
440 if (region_can) *region_can = EINA_TRUE; 440 if (region_can) *region_can = EINA_TRUE;
441 441
@@ -523,5 +523,6 @@ efl_draw_convert_func_get(Efl_Gfx_Colorspace srccs, Efl_Gfx_Colorspace dstcs,
523 } 523 }
524 524
525 ERR("unsupported colorspace conversion from %d to %d", srccs, dstcs); 525 ERR("unsupported colorspace conversion from %d to %d", srccs, dstcs);
526 if (region_can) *region_can = EINA_FALSE;
526 return NULL; 527 return NULL;
527} 528}