(overlays) If image could be found, set loading status to 'BUSY', otherwise,

set to 'DONE'
This commit is contained in:
twinaphex 2015-02-23 09:25:05 +01:00
parent ea3d55582a
commit a8ccb02b52

View File

@ -362,9 +362,8 @@ static bool input_overlay_load_overlay_image(input_overlay_t *ol,
}
overlay->image = img;
}
return true;
}
error:
if (conf)
@ -610,11 +609,10 @@ bool input_overlay_load_overlays_iterate(input_overlay_t *ol)
switch (ol->loading_status)
{
case OVERLAY_IMAGE_TRANSFER_NONE:
if (input_overlay_load_overlay_image(ol,
if (!input_overlay_load_overlay_image(ol,
ol->overlay_path, &ol->overlays[ol->pos], ol->pos))
{
ol->loading_status = OVERLAY_IMAGE_TRANSFER_DONE;
ol->loading_status = OVERLAY_IMAGE_TRANSFER_BUSY;
}
break;
case OVERLAY_IMAGE_TRANSFER_BUSY:
ol->loading_status = OVERLAY_IMAGE_TRANSFER_DONE;