preload_done member is declared only if async preload is enabled
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Dec 2010 10:09:58 +0000 (10:09 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Dec 2010 10:09:58 +0000 (10:09 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@55627 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_image_data.c
src/lib/engines/common/evas_image_main.c

index 2213ced..15ee166 100644 (file)
@@ -104,7 +104,9 @@ evas_common_rgba_image_colorspace_set(Image_Entry* ie_dst, int cspace)
          {
              ie_dst->allocated.w = 0;
              ie_dst->allocated.h = 0;
+#ifdef BUILD_ASYNC_PRELOAD
              ie_dst->flags.preload_done = 0;
+#endif
              ie_dst->flags.loaded = 0;
              dst->image.data = NULL;
             dst->image.no_free = 0;
index fde9c3e..9287185 100644 (file)
@@ -294,7 +294,9 @@ _evas_common_rgba_image_surface_delete(Image_Entry *ie)
    im->image.data = NULL;
    ie->allocated.w = 0;
    ie->allocated.h = 0;
+#ifdef BUILD_ASYNC_PRELOAD
    ie->flags.preload_done = 0;
+#endif
    ie->flags.loaded = 0;
    evas_common_rgba_image_scalecache_dirty(&im->cache_entry);
 }