src/video/SDL_bmp.c
changeset 7068 1fa727447de3
parent 7024 72cb3e205571
child 7191 75360622e65f
--- a/src/video/SDL_bmp.c	Tue Apr 16 01:05:32 2013 -0400
+++ b/src/video/SDL_bmp.c	Tue Apr 16 09:33:33 2013 -0700
@@ -260,6 +260,12 @@
                 SDL_RWread(src, &palette->colors[i].g, 1, 1);
                 SDL_RWread(src, &palette->colors[i].r, 1, 1);
                 SDL_RWread(src, &palette->colors[i].a, 1, 1);
+
+                /* According to Microsoft documentation, the fourth element
+                   is reserved and must be zero, so we shouldn't treat it as
+                   alpha.
+                */
+                palette->colors[i].a = SDL_ALPHA_OPAQUE;
             }
         }
     }