mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-28 15:05:41 -04:00
Image: Fix reading of JPEG files
This commit is contained in:
parent
43eb6e20fa
commit
8b2b4ce8d9
@ -490,8 +490,9 @@ static bool WrapJPEGDecompress(RGBA8Image* image, T setup_func)
|
|||||||
u32* dst_ptr = image->GetRowPixels(y);
|
u32* dst_ptr = image->GetRowPixels(y);
|
||||||
for (u32 x = 0; x < info.image_width; x++)
|
for (u32 x = 0; x < info.image_width; x++)
|
||||||
{
|
{
|
||||||
*(dst_ptr) =
|
*(dst_ptr++) =
|
||||||
(ZeroExtend32(src_ptr[0]) | (ZeroExtend32(src_ptr[1]) << 8) | (ZeroExtend32(src_ptr[2]) << 16) | 0xFF000000u);
|
(ZeroExtend32(src_ptr[0]) | (ZeroExtend32(src_ptr[1]) << 8) | (ZeroExtend32(src_ptr[2]) << 16) | 0xFF000000u);
|
||||||
|
src_ptr += 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user