add function Get_image_mode()

just as there is Set_image_mode()
This commit is contained in:
Thomas Bernard
2019-11-29 01:03:45 +01:00
parent f8c06cd575
commit 4fa256398c
4 changed files with 13 additions and 1 deletions

View File

@@ -360,6 +360,11 @@ void Set_image_mode(T_IO_Context *context, enum IMAGE_MODES mode)
}
}
enum IMAGE_MODES Get_image_mode(T_IO_Context *context)
{
return Main.backups->Pages->Image_mode;
}
///
/// Generic allocation and similar stuff, done at beginning of image load,
/// as soon as size is known.