mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 23:45:12 +00:00
cellPhotoDecode: optimize get_scaled_image
This commit is contained in:
parent
e6885e25b5
commit
87e628a9e9
4 changed files with 43 additions and 15 deletions
|
|
@ -162,7 +162,7 @@ error_code cellPhotoDecodeFromFile(vm::cptr<char> srcHddDir, vm::cptr<char> srcH
|
|||
s32 width{};
|
||||
s32 height{};
|
||||
|
||||
if (!Emu.GetCallbacks().get_scaled_image(path, set_param->width, set_param->height, width, height, static_cast<u8*>(set_param->dstBuffer.get_ptr())))
|
||||
if (!Emu.GetCallbacks().get_scaled_image(path, set_param->width, set_param->height, width, height, static_cast<u8*>(set_param->dstBuffer.get_ptr()), false))
|
||||
{
|
||||
cellPhotoDecode.error("Failed to decode '%s'", path);
|
||||
return CELL_PHOTO_DECODE_ERROR_DECODE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue