diff --git a/gfx/image.h b/gfx/image.h index 3307a769a8..3a1f07c89b 100644 --- a/gfx/image.h +++ b/gfx/image.h @@ -25,11 +25,7 @@ struct texture_image { unsigned width; unsigned height; -#ifdef __CELLOS_LV2__ - uint8_t *pixels; -#else uint32_t *pixels; -#endif }; bool texture_image_load(const char *path, struct texture_image* img); diff --git a/ps3/image.c b/ps3/image.c index bdb604e5c6..4cb6009e67 100644 --- a/ps3/image.c +++ b/ps3/image.c @@ -128,7 +128,7 @@ static bool ps3graphics_load_jpeg(const char * path, struct texture_image *out_i goto error; dCtrlParam.outputBytesPerLine = outParam.outputWidth * 4; - ret = cellJpgDecDecodeData(mHandle, sHandle, out_img->pixels, &dCtrlParam, &dOutInfo); + ret = cellJpgDecDecodeData(mHandle, sHandle, (uint8_t*)out_img->pixels, &dCtrlParam, &dOutInfo); if (ret != CELL_OK || dOutInfo.status != CELL_JPGDEC_DEC_STATUS_FINISH) goto error; @@ -219,7 +219,7 @@ static bool ps3graphics_load_png(const char * path, struct texture_image *out_im goto error; dCtrlParam.outputBytesPerLine = outParam.outputWidth * 4; - ret = cellPngDecDecodeData(mHandle, sHandle, out_img->pixels, &dCtrlParam, &dOutInfo); + ret = cellPngDecDecodeData(mHandle, sHandle, (uint8_t*)out_img->pixels, &dCtrlParam, &dOutInfo); if (ret != CELL_OK || dOutInfo.status != CELL_PNGDEC_DEC_STATUS_FINISH)