Pete Shinners - Thu Jun 20 10:05:54 PDT 2002
authorSam Lantinga <slouken@libsdl.org>
Thu, 20 Jun 2002 17:06:38 +0000
changeset 71e2eb6980be07
parent 70 ef5fe56a0f07
child 72 cf059957e0bf
Pete Shinners - Thu Jun 20 10:05:54 PDT 2002
* The JPEG loader can now load EXIF format JPEG images
CHANGES
IMG_jpg.c
     1.1 --- a/CHANGES	Fri May 03 02:10:44 2002 +0000
     1.2 +++ b/CHANGES	Thu Jun 20 17:06:38 2002 +0000
     1.3 @@ -1,5 +1,7 @@
     1.4  
     1.5  1.2.3:
     1.6 +Pete Shinners - Thu Jun 20 10:05:54 PDT 2002
     1.7 + * The JPEG loader can now load EXIF format JPEG images
     1.8  Dag-Erling Smorgrav - Thu May  2 19:09:48 PDT 2002
     1.9   * The XCF loader now ignores invisible layers and channels
    1.10  
     2.1 --- a/IMG_jpg.c	Fri May 03 02:10:44 2002 +0000
     2.2 +++ b/IMG_jpg.c	Thu Jun 20 17:06:38 2002 +0000
     2.3 @@ -48,7 +48,8 @@
     2.4  		if ( (magic[0] == 0xFF) && (magic[1] == 0xD8) ) {
     2.5  			SDL_RWread(src, magic, 4, 1);
     2.6  			SDL_RWread(src, magic, 4, 1);
     2.7 -			if ( memcmp((char *)magic, "JFIF", 4) == 0 ) {
     2.8 +			if ( memcmp((char *)magic, "JFIF", 4) == 0 ||
     2.9 +			     memcmp((char *)magic, "Exif", 4) == 0 ) {
    2.10  				is_JPG = 1;
    2.11  			}
    2.12  		}