changed flag to accurate, it now loades all icons correctly

This commit is contained in:
NightlyFox 2018-09-29 06:31:34 -05:00
parent f9a1dd8a72
commit 4edc1da688

View File

@ -334,7 +334,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
if (w != 256 || h != 256 ) return; //The decoded image must be 256x256. if (w != 256 || h != 256 ) return; //The decoded image must be 256x256.
if(tjDecompress2(_jpegDecompressor, me->icon, me->icon_size, imageptr, w, 0/*pitch*/, h, TJPF_RGB, TJFLAG_FASTDCT)==-1)//The decoded image must be RGB if(tjDecompress2(_jpegDecompressor, me->icon, me->icon_size, imageptr, w, 0/*pitch*/, h, TJPF_RGB, TJFLAG_ACCURATEDCT)==-1)//The decoded image must be RGB
return; return;
me->icon_size = 0; me->icon_size = 0;