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:
uz
2012-02-26 15:27:36 +00:00
parent 6893f52a50
commit fa052219e3
6 changed files with 358 additions and 28 deletions

View File

@@ -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 */