From dcf43649a6d6d02240c8b667779ef72f770923e6 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Sat, 26 Sep 2020 12:33:31 +0000 Subject: [PATCH] FIX 3 git-svn-id: svn://kolibrios.org@8082 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/fridge/how_to_compile.txt | 1 + programs/games/fridge/kolibri_libimg.h | 64 ------------------------ 2 files changed, 1 insertion(+), 64 deletions(-) create mode 100644 programs/games/fridge/how_to_compile.txt delete mode 100644 programs/games/fridge/kolibri_libimg.h diff --git a/programs/games/fridge/how_to_compile.txt b/programs/games/fridge/how_to_compile.txt new file mode 100644 index 0000000000..addc6523a8 --- /dev/null +++ b/programs/games/fridge/how_to_compile.txt @@ -0,0 +1 @@ +To compilation, you need to have kolibri_libimg.h and loadlibimg.o from C_Layer in this catalog \ No newline at end of file diff --git a/programs/games/fridge/kolibri_libimg.h b/programs/games/fridge/kolibri_libimg.h deleted file mode 100644 index 6133993e6b..0000000000 --- a/programs/games/fridge/kolibri_libimg.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef KOLIBRI_LIBIMG_H -#define KOLIBRI_LIBIMG_H - -extern int kolibri_libimg_init(void); - -//list of format id's -#define LIBIMG_FORMAT_BMP 1 -#define LIBIMG_FORMAT_ICO 2 -#define LIBIMG_FORMAT_CUR 3 -#define LIBIMG_FORMAT_GIF 4 -#define LIBIMG_FORMAT_PNG 5 -#define LIBIMG_FORMAT_JPEG 6 -#define LIBIMG_FORMAT_TGA 7 -#define LIBIMG_FORMAT_PCX 8 -#define LIBIMG_FORMAT_XCF 9 -#define LIBIMG_FORMAT_TIFF 10 -#define LIBIMG_FORMAT_PNM 11 -#define LIBIMG_FORMAT_WBMP 12 -#define LIBIMG_FORMAT_XBM 13 -#define LIBIMG_FORMAT_Z80 14 - -//error codes -#define LIBIMG_ERROR_OUT_OF_MEMORY 1 -#define LIBIMG_ERROR_FORMAT 2 -#define LIBIMG_ERROR_CONDITIONS 3 -#define LIBIMG_ERROR_BIT_DEPTH 4 -#define LIBIMG_ERROR_ENCODER 5 -#define LIBIMG_ERROR_SRC_TYPE 6 -#define LIBIMG_ERROR_SCALE 7 -#define LIBIMG_ERROR_INTER 8 -#define LIBIMG_ERROR_NOT_INPLEMENTED 9 -#define LIBIMG_ERROR_INVALID_INPUT 10 - -//encode flags (byte 0x02 of _common option) -#define LIBIMG_ENCODE_STRICT_SPECIFIC 0x01 -#define LIBIMG_ENCODE_STRICT_BIT_DEPTH 0x02 -#define LIBIMG_ENCODE_DELETE_ALPHA 0x08 -#define LIBIMG_ENCODE_FLUSH_ALPHA 0x10 - - -#define FLIP_VERTICAL 0x01 -#define FLIP_HORIZONTAL 0x02 - -#define ROTATE_90_CW 0x01 -#define ROTATE_180 0x02 -#define ROTATE_270_CW 0x03 -#define ROTATE_90_CCW ROTATE_270_CW -#define ROTATE_270_CCW ROTATE_90_CW - -extern void* (*img_decode)(void *, uint32_t, uint32_t) __attribute__((__stdcall__)); -extern void* (*img_encode)(void *, uint32_t, uint32_t) __attribute__((__stdcall__)); -extern void* (*img_create)(uint32_t, uint32_t, uint32_t) __attribute__((__stdcall__)); -extern void (*img_to_rgb2)(void *, void *) __attribute__((__stdcall__)); -extern void* (*img_to_rgb)(void *) __attribute__((__stdcall__)); -extern uint32_t (*img_flip)(void *, uint32_t) __attribute__((__stdcall__)); -extern uint32_t (*img_flip_layer)(void *, uint32_t) __attribute__((__stdcall__)); -extern uint32_t (*img_rotate)(void *, uint32_t) __attribute__((__stdcall__)); -extern uint32_t (*img_rotate_layer)(void *, uint32_t) __attribute__((__stdcall__)); -extern void (*img_draw)(void *, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t ) __attribute__((__stdcall__)); -extern uint32_t (*img_count)(void *) __attribute__((__stdcall__)); -extern uint32_t (*img_destroy)(void *) __attribute__((__stdcall__)); -extern uint32_t (*img_destroy_layer)(void *) __attribute__((__stdcall__)); - -#endif /* KOLIBRI_LIBIMG_H */