File diff r27184:79c640912f94 → r27185:77a5797bb16b
src/gfx_layout.h
Show inline comments
 
@@ -44,13 +44,14 @@ struct FontState {
 
	/**
 
	 * Switch to new colour \a c.
 
	 * @param c New colour to use.
 
	 */
 
	inline void SetColour(TextColour c)
 
	{
 
		assert(c >= TC_BLUE && c <= TC_BLACK);
 
		assert((c & TC_COLOUR_MASK) >= TC_BLUE && (c & TC_COLOUR_MASK) <= TC_BLACK);
 
		assert((c & (TC_COLOUR_MASK | TC_FLAGS_MASK)) == c);
 
		if ((this->cur_colour & TC_FORCED) == 0) this->cur_colour = c;
 
	}
 

	
 
	/**
 
	 * Switch to and pop the last saved colour on the stack.
 
	 */