summaryrefslogtreecommitdiff
path: root/src/spriteloader
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-12-24 23:33:45 +0000
committerpeter1138 <peter1138@openttd.org>2011-12-24 23:33:45 +0000
commit3ef77e55c5d552a58555f3d5eb7b7079b537fff3 (patch)
tree4a5d1131661b9fb4e94bf9409f089dae84f65f6e /src/spriteloader
parentdc497258d68ebcd19f4e2512e7255aca344bfff0 (diff)
downloadopenttd-3ef77e55c5d552a58555f3d5eb7b7079b537fff3.tar.xz
(svn r23670) -Feature: Add ability to adjust brightness of colour after remapping for 32bpp sprites
Diffstat (limited to 'src/spriteloader')
-rw-r--r--src/spriteloader/png.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp
index 43301616b..76c914cbf 100644
--- a/src/spriteloader/png.cpp
+++ b/src/spriteloader/png.cpp
@@ -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)];