evas: don't forget that we can allocate AGRY8 now.
authorCedric BAIL <cedric.bail@samsung.com>
Fri, 21 Mar 2014 01:48:04 +0000 (10:48 +0900)
committerCedric BAIL <cedric.bail@free.fr>
Tue, 1 Apr 2014 13:00:15 +0000 (22:00 +0900)
src/lib/evas/common/evas_image_main.c

index 5ac91cc..f4302b1 100644 (file)
@@ -124,6 +124,7 @@ _evas_common_rgba_image_surface_size(unsigned int w, unsigned int h, Evas_Colors
    switch (cspace)
      {
       case EVAS_COLORSPACE_GRY8: siz = w * h * sizeof(DATA8); break;
+      case EVAS_COLORSPACE_AGRY88: siz = w * h * sizeof(DATA16); break;
       case EVAS_COLORSPACE_ARGB8888: siz = w * h * sizeof(DATA32); break;
       case EVAS_COLORSPACE_ETC1:
          // Need to round width and height independently