mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Initialize pspWidth and increase the max size.
This commit is contained in:
parent
7cee37c4e8
commit
f10c9dfd8c
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ static int __DecodeJpeg(u32 jpegAddr, int jpegSize, u32 imageAddr) {
|
|||
if (actual_components == 3) {
|
||||
u24_be *imageBuffer = (u24_be*)jpegBuf;
|
||||
u32 *abgr = (u32*)Memory::GetPointer(imageAddr);
|
||||
int pspWidth;
|
||||
for (int w = 2; w < 2048; w *= 2) {
|
||||
int pspWidth = 0;
|
||||
for (int w = 2; w <= 4096; w *= 2) {
|
||||
if (w >= width && w >= height) {
|
||||
pspWidth = w;
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue