Some more work on reading pcx files.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5554 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -65,7 +65,8 @@ Bitmap* NewBitmap (unsigned Width, unsigned Height)
|
||||
|
||||
/* Initialize the data */
|
||||
B->Type = bmUnknown;
|
||||
SB_Init (&B->Name);
|
||||
B->Name = EmptyStrBuf;
|
||||
B->Tag = 0;
|
||||
B->Width = Width;
|
||||
B->Height = Height;
|
||||
B->Pal = 0;
|
||||
@@ -79,8 +80,10 @@ Bitmap* NewBitmap (unsigned Width, unsigned Height)
|
||||
void FreeBitmap (Bitmap* B)
|
||||
/* Free a dynamically allocated bitmap */
|
||||
{
|
||||
/* Free the palette */
|
||||
/* Free the format specific data, the palette and then the bitmap */
|
||||
xfree (B->Tag);
|
||||
xfree (B->Pal);
|
||||
xfree(B);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user