Re-integrated anim in trunk, fixing the 999-layer limit at the same time
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1841 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -62,7 +62,7 @@ typedef struct
|
||||
T_Palette Palette;
|
||||
short Width;
|
||||
short Height;
|
||||
byte Nb_layers;
|
||||
int Nb_layers;
|
||||
char Comment[COMMENT_SIZE+1];
|
||||
byte Background_transparent;
|
||||
byte Transparent_color;
|
||||
@@ -83,7 +83,7 @@ typedef struct
|
||||
T_Color_cycle Cycle_range[16];
|
||||
|
||||
/// Internal: during load, marks which layer is being loaded.
|
||||
short Current_layer;
|
||||
int Current_layer;
|
||||
|
||||
/// Internal: Used to mark truecolor images on loading. Only used by preview.
|
||||
//byte Is_truecolor;
|
||||
@@ -215,10 +215,13 @@ void Set_pixel(T_IO_Context *context, short x, short y, byte c);
|
||||
/// Set the color of a 24bit pixel (on load)
|
||||
void Set_pixel_24b(T_IO_Context *context, short x, short y, byte r, byte g, byte b);
|
||||
/// Function to call when need to switch layers.
|
||||
void Set_loading_layer(T_IO_Context *context, byte layer);
|
||||
void Set_loading_layer(T_IO_Context *context, int layer);
|
||||
/// Function to call when need to switch layers.
|
||||
void Set_saving_layer(T_IO_Context *context, byte layer);
|
||||
|
||||
void Set_saving_layer(T_IO_Context *context, int layer);
|
||||
/// Function to call when loading an image's duration
|
||||
void Set_frame_duration(T_IO_Context *context, int duration);
|
||||
/// Function to call to get an image's duration for saving
|
||||
int Get_frame_duration(T_IO_Context *context);
|
||||
|
||||
// =================================================================
|
||||
// What follows here are the definitions of functions and data
|
||||
|
||||
Reference in New Issue
Block a user