IMG_tga.c
changeset 501 64a10bd1598c
parent 496 6332f9425dcc
child 528 7f9e88f4b45e
     1.1 --- a/IMG_tga.c	Mon Sep 11 21:23:09 2017 -0700
     1.2 +++ b/IMG_tga.c	Mon Sep 11 23:42:09 2017 -0700
     1.3 @@ -301,7 +301,7 @@
     1.4          } else {
     1.5              SDL_RWread(src, dst, w * bpp, 1);
     1.6          }
     1.7 -#if SDL_BYTEORDER == SDL_LIL_ENDIAN
     1.8 +#if SDL_BYTEORDER == SDL_BIG_ENDIAN
     1.9          if (bpp == 2) {
    1.10              /* swap byte order */
    1.11              int x;