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:
@@ -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 */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user