Commits

Nirav Patel committed 1fc9ed0

A quick fix for jpeg saving not checking color order in 24 bit surfaces

Note that there is a similar bug remaining in the camera module

  • Participants
  • Parent commits 9e35687

Comments (0)

Files changed (1)

File src/imageext.c

        So no conversion is needed.  24bit, RGB
     */
 
-    if((surface->format->BytesPerPixel == 3) && !(surface->flags & SDL_SRCALPHA) ) {
+    if((surface->format->BytesPerPixel == 3) && !(surface->flags & SDL_SRCALPHA) && (surface->format->Rshift == 0)) {
         /*
            printf("not creating...\n");
         */