Move evaluation of attributes into the input routine.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5592 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -243,7 +243,7 @@ static void ReadPlane (FILE* F, PCXHeader* P, unsigned char* L)
|
||||
|
||||
|
||||
|
||||
Bitmap* ReadPCXFile (const char* Name)
|
||||
Bitmap* ReadPCXFile (const Collection* A)
|
||||
/* Read a bitmap from a PCX file */
|
||||
{
|
||||
PCXHeader* P;
|
||||
@@ -254,6 +254,8 @@ Bitmap* ReadPCXFile (const char* Name)
|
||||
unsigned X, Y;
|
||||
|
||||
|
||||
/* Get the file name */
|
||||
const char* Name = NeedAttrVal (A, "name", "read pcx file");
|
||||
|
||||
/* Open the file */
|
||||
FILE* F = fopen (Name, "rb");
|
||||
|
||||
Reference in New Issue
Block a user