From 46da3c0e086139de934a9a7784b76d68f4fa19fa Mon Sep 17 00:00:00 2001
From: jsalmon3 <>
Date: Sun, 28 Mar 2004 15:33:31 +0000
Subject: [PATCH] Don't set 255 to transparency by default

---
 src/video/png.cpp | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/video/png.cpp b/src/video/png.cpp
index 20a4eb011..6cea9700b 100644
--- a/src/video/png.cpp
+++ b/src/video/png.cpp
@@ -31,7 +31,7 @@
 //@{
 
 /*----------------------------------------------------------------------------
---		Includes
+--  Includes
 ----------------------------------------------------------------------------*/
 
 #include <stdio.h>
@@ -43,19 +43,19 @@
 #include "iolib.h"
 
 /*----------------------------------------------------------------------------
---		Variables
+--  Variables
 ----------------------------------------------------------------------------*/
 
 /*----------------------------------------------------------------------------
---		Functions
+--  Functions
 ----------------------------------------------------------------------------*/
 
 /**
-**		png read callback for CL-IO.
+**  png read callback for CL-IO.
 **
-**		@param png_ptr		png struct pointer.
-**		@param data		byte address to read to.
-**		@param length		number of bytes to read.
+**  @param png_ptr  png struct pointer.
+**  @param data     byte address to read to.
+**  @param length   number of bytes to read.
 */
 local void CL_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
 {
@@ -238,10 +238,6 @@ global Graphic* LoadGraphicPNG(const char* name)
 				(Uint8)transv->blue);
 		}
 		SDL_SetColorKey(surface, SDL_SRCCOLORKEY, ckey);
-	} else if (color_type == PNG_COLOR_TYPE_PALETTE) {
-		// Use 255 for transparency by default
-		// FIXME: make the images set transparency correctly
-		SDL_SetColorKey(surface, SDL_SRCCOLORKEY, 255);
 	}
 
 	/* Create the array of pointers to image data */