enancement: replaced nanojpeg with turbojpeg

This commit is contained in:
NightlyFox 2018-09-29 13:21:11 -05:00
parent c2f8c08c38
commit 9f495667dc

View File

@ -334,8 +334,7 @@ void menuEntryParseIcon(menuEntry_s* me) {
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_ACCURATEDCT)==-1)//The decoded image must be RGB
return;
if(tjDecompress2(_jpegDecompressor, me->icon, me->icon_size, imageptr, w, 0/*pitch*/, h, TJPF_RGB, TJFLAG_ACCURATEDCT)==-1) return; //The decoded image must be RGB
me->icon_size = 0;
free(me->icon);