(svn r10132) -Codechange: split out the last direct video-buffer read access to the blitter-layer

-Add: added a new renderer and blitter to make room for some optimized bpp
-Fix: fill the alpha channel in the grf-spriteloader
This commit is contained in:
truelight
2007-06-13 10:31:40 +00:00
parent 5eda486f93
commit f782a311f8
18 changed files with 389 additions and 7 deletions

View File

@@ -95,6 +95,10 @@ bool SpriteLoaderGrf::LoadSprite(SpriteLoader::Sprite *sprite, uint32 file_pos)
sprite->data[i].m = dest[i];
}
/* Make sure to mark all transparent pixels transparent on the alpha channel too */
for (int i = 0; i < sprite->width * sprite->height; i++)
if (sprite->data[i].m != 0) sprite->data[i].a = 0xFF;
free(dest_orig);
return true;
}