File diff r18846:940300a5be9b → r18847:c72a2915657e
src/sprite.h
Show inline comments
 
@@ -136,14 +136,14 @@ static inline void DrawNewGRFTileSeqInGU
 
{
 
	DrawCommonTileSeqInGUI(x, y, dts, 0, stage, default_palette, true);
 
}
 

	
 
/**
 
 * Applies PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOUR to a palette entry of a sprite layout entry
 
 * @Note for ground sprites use #GroundSpritePaletteTransform
 
 * @Note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
 
 * @note for ground sprites use #GroundSpritePaletteTransform
 
 * @note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
 
 *       when to use the default palette.
 
 *
 
 * @param image The sprite to draw
 
 * @param pal The palette from the sprite layout
 
 * @param default_pal The default recolour sprite to use (typically company colour resp. random industry/house colour)
 
 * @return The palette to use
 
@@ -156,13 +156,13 @@ static inline PaletteID SpriteLayoutPale
 
		return PAL_NONE;
 
	}
 
}
 

	
 
/**
 
 * Applies PALETTE_MODIFIER_COLOUR to a palette entry of a ground sprite
 
 * @Note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
 
 * @note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set
 
 *       when to use the default palette.
 
 *
 
 * @param image The sprite to draw
 
 * @param pal The palette from the sprite layout
 
 * @param default_pal The default recolour sprite to use (typically company colour resp. random industry/house colour)
 
 * @return The palette to use