Commits

illume committed 82b8737

Fixed SDL_BIG_ENDIAN bug for png write. Fixes and closes #39

  • Participants
  • Parent commits 5178603

Comments (0)

Files changed (1)

File src/imageext.c

 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
                                        0xff0000, 0xff00, 0xff, 0x000000ff
 #else
-                                       0xff, 0xff00, 0xff0000, 0xff000000
+                                       0xff00, 0xff, 0xff0000, 0xff000000
 #endif
         );
 
         ss_surface = SDL_CreateRGBSurface (SDL_SWSURFACE,
                                        ss_w, ss_h, pixel_bits,
 #if SDL_BYTEORDER == SDL_BIG_ENDIAN
-                                       0xff0000, 0xff00, 0xff, 0x000000ff
+                                       0xff00, 0xff, 0xff0000, 0xff000000
 #else
                                        0xff, 0xff00, 0xff0000, 0xff000000
 #endif