evas image: fix preloading compatibility broken. 20/191320/2
authorHermet Park <hermetpark@gmail.com>
Fri, 12 Oct 2018 05:27:35 +0000 (14:27 +0900)
committerHermet Park <chuneon.park@samsung.com>
Tue, 16 Oct 2018 05:17:25 +0000 (05:17 +0000)
Well... Logically, we don't need to request preload again,
If image is loaded already. But somewhow it broke the enlightenment pager
and I need to revert the previous behavior here.

Whatever image is loaded or not, here image requests preload again,
unless it is already on preloading.

This was introduced by babacf41b7269a257065a41a2a4ec7763bada25f.

This fixes enlightenment pager bg non visible issue.

Change-Id: I7933f1463038afbbb0990f742baab5f972de17aa

src/lib/evas/canvas/efl_canvas_image.c

index c2988f8..0339741 100644 (file)
@@ -92,7 +92,7 @@ _image_preload_internal(Eo *eo_obj, Evas_Image_Data *o, Eina_Bool cancel)
      }
    else
      {
-        if (o->preload == EVAS_IMAGE_PRELOAD_NONE)
+        if (o->preload != EVAS_IMAGE_PRELOADING)
           {
              o->preload = EVAS_IMAGE_PRELOADING;
              ENFN->image_data_preload_request(ENC, o->engine_data, eo_obj);