evas: reuse code for colorspace logic by using switch case statement fallthrough.
authorCedric BAIL <cedric@osg.samsung.com>
Mon, 5 Jun 2017 19:02:59 +0000 (12:02 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 5 Jun 2017 19:07:57 +0000 (12:07 -0700)
src/modules/evas/engines/software_generic/evas_engine.c

index c219769..1c44b1e 100644 (file)
@@ -1863,8 +1863,10 @@ eng_image_data_slice_add(void *engdata, void *image,
      {
       case EFL_GFX_COLORSPACE_ARGB8888:
         bpp = 4;
+        EINA_FALLTHROUGH;
       case EFL_GFX_COLORSPACE_AGRY88:
         if (!bpp) bpp = 2;
+        EINA_FALLTHROUGH;
       case EFL_GFX_COLORSPACE_GRY8:
         if (!bpp) bpp = 1;
         if (plane != 0) goto fail;