GrafX2 2.9.3227
The ultimate 256-color painting program
|
Formats for the MO/TO Thomson machines. More...
#include <stdlib.h>
#include <string.h>
#include "struct.h"
#include "io.h"
#include "loadsave.h"
#include "loadsavefuncs.h"
#include "fileformats.h"
#include "oldies.h"
#include "input.h"
#include "engine.h"
#include "screen.h"
#include "windows.h"
#include "help.h"
#include "gfx2mem.h"
#include "gfx2log.h"
Functions | |
void | Test_MOTO (T_IO_Context *context, FILE *file) |
Test for Thomson file. More... | |
void | Load_MOTO (T_IO_Context *context) |
Load a picture for Thomson TO8/TO8D/TO9/TO9+/MO6. More... | |
unsigned int | MOTO_MAP_pack (byte *packed, const byte *unpacked, unsigned int unpacked_len) |
Pack a stream of byte in the format used by Thomson MO/TO MAP files. More... | |
static int | Save_MOTO_window (enum MOTO_Machine_Type *machine, int *format, enum MOTO_Graphic_Mode *mode) |
GUI window to choose Thomson MO/TO saving parameters. More... | |
void | Save_MOTO (T_IO_Context *context) |
Save a picture in MAP or BIN Thomson MO/TO file format. More... | |
Variables | |
char | Program_version [] |
const char | SVN_revision [] |
Formats for the MO/TO Thomson machines.
Pack a stream of byte in the format used by Thomson MO/TO MAP files.
References GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), and GFX2_malloc.
Referenced by Save_MOTO(), and Test_MOTO_MAP_pack().
|
static |
GUI window to choose Thomson MO/TO saving parameters.
[out] | machine | target machine |
[out] | format | file format (0 = BIN, 1 = MAP) |
[in,out] | mode | video mode MOTO_Graphic_Mode |
References BUTTON_HELP, BUTTON_SAVE, Close_window(), Display_cursor(), format, Hide_cursor, Is_shortcut(), Key, KEY_ESCAPE, KEY_RETURN, LEFT_SIDE, MACHINE_MO5, MACHINE_MO6, MACHINE_TO7, MACHINE_TO770, MACHINE_TO8, MC_Dark, MC_Light, mode, MOTO_MODE_40col, MOTO_MODE_80col, MOTO_MODE_bm16, MOTO_MODE_bm4, Open_window(), Print_in_window(), Update_window_area, Window_attribute2, Window_clicked_button(), Window_dropdown_add_item(), Window_height, Window_help(), Window_set_dropdown_button(), Window_set_normal_button(), and Window_width.
Referenced by Save_MOTO().
|
extern |
Referenced by Save_MOTO().
|
extern |
Referenced by Save_MOTO().