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

src/lib/engines/common/evas_image_main.c

index 164e811..fde9c3e 100644 (file)
@@ -213,8 +213,10 @@ evas_common_rgba_image_unload(Image_Entry *ie)
         im->image.data = NULL;
         ie->allocated.w = 0;
         ie->allocated.h = 0;
-        ie->flags.preload_done = 0;
         ie->flags.loaded = 0;
+#ifdef BUILD_ASYNC_PRELOAD
+        ie->flags.preload_done = 0;
+#endif
         return;
      }
 #endif   
@@ -224,8 +226,10 @@ evas_common_rgba_image_unload(Image_Entry *ie)
    im->image.data = NULL;
    ie->allocated.w = 0;
    ie->allocated.h = 0;
-   ie->flags.preload_done = 0;
    ie->flags.loaded = 0;
+#ifdef BUILD_ASYNC_PRELOAD
+   ie->flags.preload_done = 0;
+#endif
 }
 
 static int