mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-26 06:40:32 +00:00
Fix ternary operator
This commit is contained in:
parent
68b0f800ff
commit
86ca4819ee
@ -177,7 +177,7 @@ int cellPngDecDecodeData(u32 mainHandle, u32 subHandle, mem8_ptr_t data, const m
|
||||
case CELL_PNGDEC_RGB:
|
||||
case CELL_PNGDEC_RGBA:
|
||||
{
|
||||
const char nComponents = (CELL_PNGDEC_RGBA ? 4 : 3);
|
||||
const char nComponents = current_outParam.outputColorSpace == CELL_PNGDEC_RGBA ? 4 : 3;
|
||||
image_size *= nComponents;
|
||||
if (dataCtrlParam->outputBytesPerLine > width * nComponents) //check if we need padding
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user