Merge pull request #8869 from jdgleaver/jpeg-fix

(task_image) Fix jpeg/bmp/tga loading bug
This commit is contained in:
Twinaphex 2019-05-28 18:50:47 +02:00 committed by GitHub
commit 402607537a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -198,13 +198,15 @@ static int cb_nbio_image_thumbnail(void *data, size_t len)
image->status = IMAGE_STATUS_TRANSFER;
image->handle = handle;
image->size = len;
image->cb = &cb_image_thumbnail;
ptr = nbio_get_ptr(nbio->handle, &len);
image_transfer_set_buffer_ptr(image->handle, image->type, ptr, len);
/* Set image size */
image->size = len;
/* Set task iteration duration */
rarch_environment_cb(RETRO_ENVIRONMENT_GET_TARGET_REFRESH_RATE, &refresh_rate);
if (refresh_rate == 0.0f)