File diff r12182:7c862c969470 → r12183:3b54aca1177b
src/gfx_type.h
Show inline comments
 
@@ -126,27 +126,29 @@ struct CursorVars {
 
	bool fix_at;     ///< mouse is moving, but cursor is not (used for scrolling)
 
	bool in_window;  ///< mouse inside this window, determines drawing logic
 

	
 
	bool vehchain;   ///< vehicle chain is dragged
 
};
 

	
 
/** Data about how and where to blit pixels. */
 
struct DrawPixelInfo {
 
	void *dst_ptr;
 
	int left, top, width, height;
 
	int pitch;
 
	ZoomLevel zoom;
 
};
 

	
 
/** Structure to access the alpha, red, green, and blue channels from a 32 bit number. */
 
struct Colour {
 
#if TTD_ENDIAN == TTD_BIG_ENDIAN
 
	uint8 a, r, g, b; ///< colour channels in BE order
 
#else
 
	uint8 b, g, r, a; ///< colour channels in LE order
 
#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
 

	
 
	operator uint32 () const { return *(uint32 *)this; }
 
	operator uint32 () const { return *(uint32 *)this; } ///< Conversion of the channel information to a 32 bit number.
 
};
 

	
 
/** Available font sizes */
 
enum FontSize {
 
	FS_NORMAL, ///< Index of the normal font in the font tables.
 
	FS_SMALL,  ///< Index of the small font in the font tables.