diff src/video/SDL_bmp.c @ 1683:396a35389351 SDL-1.3

Finished palettized display handling. Added support for surface palette sharing.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 17 Jun 2006 06:45:14 +0000
parents eef792d31de8
children 1577404809f0
line wrap: on
line diff
--- a/src/video/SDL_bmp.c	Fri Jun 16 06:00:31 2006 +0000
+++ b/src/video/SDL_bmp.c	Sat Jun 17 06:45:14 2006 +0000
@@ -222,7 +222,7 @@
                 SDL_RWread(src, &palette->colors[i].b, 1, 1);
                 SDL_RWread(src, &palette->colors[i].g, 1, 1);
                 SDL_RWread(src, &palette->colors[i].r, 1, 1);
-                palette->colors[i].unused = 0;
+                palette->colors[i].unused = SDL_ALPHA_OPAQUE;
             }
         } else {
             for (i = 0; i < (int) biClrUsed; ++i) {