File diff r6888:f2ab5d0e6596 → r6889:9eefa1ce35c6
src/spriteloader/grf.cpp
Show inline comments
 
@@ -95,6 +95,10 @@ bool SpriteLoaderGrf::LoadSprite(SpriteL
 
			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;
 
}