src/video/SDL_surface.c
changeset 7602 9829fb1aeac7
parent 7601 fdf89883bbaa
child 7677 871d43c6968a
equal deleted inserted replaced
7601:fdf89883bbaa 7602:9829fb1aeac7
   284             row = (Uint32 *) surface->pixels;
   284             row = (Uint32 *) surface->pixels;
   285             for (y = surface->h; y--;) {
   285             for (y = surface->h; y--;) {
   286                 spot = row;
   286                 spot = row;
   287                 for (x = surface->w; x--;) {
   287                 for (x = surface->w; x--;) {
   288                     if ((*spot & mask) == ckey) {
   288                     if ((*spot & mask) == ckey) {
   289                     if (*spot == ckey) {
       
   290                         *spot &= mask;
   289                         *spot &= mask;
   291                     }
   290                     }
   292                     ++spot;
   291                     ++spot;
   293                 }
   292                 }
   294                 row += surface->pitch / 4;
   293                 row += surface->pitch / 4;