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

@@ -66,6 +66,22 @@ Palette* NewPalette (unsigned Entries)
Palette* NewMonochromePalette (void)
/* Create and return a palette with two entries (black and white) */
{
/* Create a new palette */
Palette* P = NewPalette (2);
/* Set the two colors */
P->Entries[0] = RGBA (0x00, 0x00, 0x00, 0x00);
P->Entries[1] = RGBA (0xFF, 0xFF, 0xFF, 0x00);
/* Return the new palette */
return P;
}
void FreePalette (Palette* P)
/* Free a dynamically allocated palette */
{