src/video/SDL_bmp.c
changeset 7024 72cb3e205571
parent 6885 700f1b25f77f
child 7068 1fa727447de3
     1.1 --- a/src/video/SDL_bmp.c	Sun Mar 24 09:51:01 2013 -0700
     1.2 +++ b/src/video/SDL_bmp.c	Sun Mar 24 09:56:45 2013 -0700
     1.3 @@ -252,14 +252,14 @@
     1.4                  SDL_RWread(src, &palette->colors[i].b, 1, 1);
     1.5                  SDL_RWread(src, &palette->colors[i].g, 1, 1);
     1.6                  SDL_RWread(src, &palette->colors[i].r, 1, 1);
     1.7 -                palette->colors[i].unused = SDL_ALPHA_OPAQUE;
     1.8 +                palette->colors[i].a = SDL_ALPHA_OPAQUE;
     1.9              }
    1.10          } else {
    1.11              for (i = 0; i < (int) biClrUsed; ++i) {
    1.12                  SDL_RWread(src, &palette->colors[i].b, 1, 1);
    1.13                  SDL_RWread(src, &palette->colors[i].g, 1, 1);
    1.14                  SDL_RWread(src, &palette->colors[i].r, 1, 1);
    1.15 -                SDL_RWread(src, &palette->colors[i].unused, 1, 1);
    1.16 +                SDL_RWread(src, &palette->colors[i].a, 1, 1);
    1.17              }
    1.18          }
    1.19      }
    1.20 @@ -510,7 +510,7 @@
    1.21                  SDL_RWwrite(dst, &colors[i].b, 1, 1);
    1.22                  SDL_RWwrite(dst, &colors[i].g, 1, 1);
    1.23                  SDL_RWwrite(dst, &colors[i].r, 1, 1);
    1.24 -                SDL_RWwrite(dst, &colors[i].unused, 1, 1);
    1.25 +                SDL_RWwrite(dst, &colors[i].a, 1, 1);
    1.26              }
    1.27          }
    1.28