1. libgd
  2. Untitled project
  3. gd-libgd

Commits

Remi Collet  committed bf14585

fix color order in bmp_read_palette, fix bmp_im2im test

  • Participants
  • Parent commits 69aaf71
  • Branches master

Comments (0)

Files changed (1)

File src/gd_bmp.c

View file
  • Ignore whitespace
 
 	for (i = 0; i < count; i++) {
 		if (
-		    !gdGetByte(&r, infile) ||
-		    !gdGetByte(&g, infile) ||
 		    !gdGetByte(&b, infile) ||
+		    !gdGetByte(&g, infile) ||
+		    !gdGetByte(&r, infile) ||
 		    (read_four && !gdGetByte(&z, infile))
 		) {
 			return 1;