[layers] working swap between main/spare, and loading files in command-line. Start of work on variable layers number and layer sharing.

git-svn-id: svn://pulkomandy.tk/GrafX2/branches/layers@1044 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-09-28 18:48:05 +00:00
parent b534cfd7d4
commit 057d5e76e4
8 changed files with 139 additions and 110 deletions

View File

@@ -330,9 +330,10 @@ typedef struct T_Page
char File_directory[MAX_PATH_CHARACTERS];///< Directory that contains the file.
char Filename[MAX_PATH_CHARACTERS]; ///< Filename without directory.
byte File_format; ///< File format, in enum ::FILE_FORMATS
struct T_Page *Next;
struct T_Page *Prev;
byte * Image[NB_LAYERS];///< Pixel data for the image.
struct T_Page *Next; ///< Pointer to the next backup
struct T_Page *Prev; ///< Pointer to the previous backup
byte Nb_layers; ///< Number of layers
byte * Image[0]; ///< Pixel data for the image.
} T_Page;
/// Collection of undo/redo steps.