Add missing parameters

This commit is contained in:
twinaphex 2016-05-07 16:24:26 +02:00
parent 0a2544c1bf
commit 7f272a4bd0
3 changed files with 7 additions and 3 deletions

View File

@ -278,7 +278,8 @@ bool video_texture_image_load(struct texture_image *out_img,
#endif
break;
case IMAGE_FORMAT_JPEG:
if (rjpeg_image_load(ptr, out_img, file_len))
if (rjpeg_image_load(ptr, out_img, file_len,
a_shift, r_shift, g_shift, b_shift))
goto success;
break;
default:

View File

@ -844,7 +844,9 @@ static void rjpeg_free(struct rjpeg_data *ctx)
free((void*)ctx->rgb);
}
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size)
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size,
unsigned a_shift, unsigned r_shift,
unsigned g_shift, unsigned b_shift)
{
struct rjpeg_data *rjpg = rjpeg_new(buf, size);
struct texture_image *out_img = (struct texture_image*)data;

View File

@ -32,7 +32,8 @@
RETRO_BEGIN_DECLS
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size);
bool rjpeg_image_load(uint8_t *buf, void *data, size_t size,
unsigned a_shift, unsigned r_shift, unsigned g_shift, unsigned b_shift);
RETRO_END_DECLS