mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
(task_image) Fix jpeg/bmp/tga loading bug
This commit is contained in:
parent
2c6ca88575
commit
a51293fbc6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user