First version of PCX reading routine is completed but mostly untested.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5555 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -60,6 +60,36 @@ struct Color {
|
||||
/*****************************************************************************/
|
||||
|
||||
|
||||
|
||||
#if defined(HAVE_INLINE)
|
||||
|
||||
INLINE Color RGB (unsigned char R, unsigned char G, unsigned char B)
|
||||
/* Generate a color value */
|
||||
{
|
||||
Color C;
|
||||
C.R = R; C.G = G; C.B = B; C.A = 0;
|
||||
return C;
|
||||
}
|
||||
|
||||
INLINE Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A)
|
||||
/* Generate a color value */
|
||||
{
|
||||
Color C;
|
||||
C.R = R; C.G = G; C.B = B; C.A = A;
|
||||
return C;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Color RGB (unsigned char R, unsigned char G, unsigned char B);
|
||||
/* Generate a color value */
|
||||
|
||||
Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A);
|
||||
/* Generate a color value */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* End of color.h */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user