From b78531a570db64dc1e5f7b8237ede9f299a035fb Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 22 Oct 2020 17:07:06 +0200 Subject: [PATCH] Adding source/Graphics/Image/Format/ico.h --- source/Graphics/Image/Format/ico.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 source/Graphics/Image/Format/ico.h diff --git a/source/Graphics/Image/Format/ico.h b/source/Graphics/Image/Format/ico.h new file mode 100644 index 0000000..3df9739 --- /dev/null +++ b/source/Graphics/Image/Format/ico.h @@ -0,0 +1,19 @@ + +#ifndef SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H +#define SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H + +#include + +typedef struct _ICONDIRENTRY { + uint8_t width; // width, in pixels. + uint8_t height; // height, in pixels + uint8_t num_colors; // Number of colors (0 if >= 8bpp) + uint16_t color_planes; // Color planes + uint16_t bpp; // Bits per pixel + uint32_t size; // size of the image, in bytes. + uint32_t offset; // offset from the start of ICO +} ICONDIRENTRY; + +#define ICONDIRENTRY_SIZE 16 /* Size as stored on disk (no padding) */ + +#endif /* SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H */