Author: titmuss
Date: Mon Mar 31 06:30:35 2008
New Revision: 2159
URL: http://svn.slimdevices.com?rev=2159&root=Jive&view=rev
Log:
Bug: 7642
Description:
Suggestion from triode: change the order SDL_image checks the image formats,
put jpeg
first for a slight performance improvement.
Modified:
trunk/squeezeplay/src/SDL_image-1.2.5/IMG.c
Modified: trunk/squeezeplay/src/SDL_image-1.2.5/IMG.c
URL:
http://svn.slimdevices.com/trunk/squeezeplay/src/SDL_image-1.2.5/IMG.c?rev=2159&root=Jive&r1=2158&r2=2159&view=diff
==============================================================================
--- trunk/squeezeplay/src/SDL_image-1.2.5/IMG.c (original)
+++ trunk/squeezeplay/src/SDL_image-1.2.5/IMG.c Mon Mar 31 06:30:35 2008
@@ -39,9 +39,9 @@
/* keep magicless formats first */
/* this list is searched in order - so we put our most common formats
first */
// { "TGA", NULL, IMG_LoadTGA_RW },
+ { "JPG", IMG_isJPG, IMG_LoadJPG_RW },
+ { "PNG", IMG_isPNG, IMG_LoadPNG_RW },
{ "GD" , IMG_isGD, IMG_LoadGD_RW },
- { "PNG", IMG_isPNG, IMG_LoadPNG_RW },
- { "JPG", IMG_isJPG, IMG_LoadJPG_RW },
{ "BMP", IMG_isBMP, IMG_LoadBMP_RW },
{ "GIF", IMG_isGIF, IMG_LoadGIF_RW },
{ "LBM", IMG_isLBM, IMG_LoadLBM_RW },
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins