Skip to content

Commit

Permalink
Fixed bug #409
Browse files Browse the repository at this point in the history
Fixed palette error with packed bitmap images.
  • Loading branch information
slouken committed Jul 20, 2007
1 parent b04fe11 commit 65f777c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IMG_lbm.c
Expand Up @@ -297,7 +297,8 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
Image->format->palette->colors[i].g = Image->format->palette->colors[i%nbcolors].g;
Image->format->palette->colors[i].b = Image->format->palette->colors[i%nbcolors].b;
}
Image->format->palette->ncolors = nbrcolorsfinal;
if ( !pbm )
Image->format->palette->ncolors = nbrcolorsfinal;
}

/* Get the bitmap */
Expand Down

0 comments on commit 65f777c

Please sign in to comment.