(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites

This commit is contained in:
peter1138
2011-12-24 23:33:45 +00:00
parent dc497258d6
commit 3ef77e55c5
7 changed files with 130 additions and 69 deletions

View File

@@ -186,9 +186,6 @@ static bool LoadPNG(SpriteLoader::Sprite *sprite, const char *filename, uint32 i
for (uint x = 0; x < png_get_image_width(png_ptr, info_ptr); x++) {
if (mask) {
if (row_pointer[x * sizeof(uint8)] != 0) {
dst[x].r = 0;
dst[x].g = 0;
dst[x].b = 0;
/* Alpha channel is used from the original image (to allow transparency in remap colours) */
extern const byte _palmap_w2d[];
byte colour = row_pointer[x * sizeof(uint8)];