Icon.png & Icon.inc

This commit is contained in:
Way, No 2014-05-06 00:20:27 +11:00
parent 550cc1079d
commit a169a19d6c
3 changed files with 18 additions and 35 deletions

View File

@ -1,35 +1,14 @@
#pragma once
#ifdef __APPLE__
#include <mach-o/getsect.h>
#define EXTLD(NAME) \
extern const unsigned char _section$__DATA__ ## NAME [];
#define LDVAR(NAME) _section$__DATA__ ## NAME
#define LDLEN(NAME) (getsectbyname("__DATA", "__" #NAME)->size)
#elif (defined __WIN32__) /* mingw */
#define EXTLD(NAME) \
extern const unsigned char binary_ ## NAME ## _start[]; \
extern const unsigned char binary_ ## NAME ## _end[];
#define LDVAR(NAME) \
binary_ ## NAME ## _start
#define LDLEN(NAME) \
((binary_ ## NAME ## _end) - (binary_ ## NAME ## _start))
#else /* gnu/linux ld */
#define EXTLD(NAME) \
extern const unsigned char _binary_ ## NAME ## _start[]; \
extern const unsigned char _binary_ ## NAME ## _end[];
#define LDVAR(NAME) \
_binary_ ## NAME ## _start
#define LDLEN(NAME) \
((_binary_ ## NAME ## _end) - (_binary_ ## NAME ## _start))
#endif
#ifdef __APPLE__
#elif __unix
EXTLD(openspades_png)
#endif
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x00,
0x6a, 0x49, 0x44, 0x41, 0x54, 0x38, 0xcb, 0x63, 0x64, 0x60, 0x60, 0xf8,
0xcf, 0x80, 0x1f, 0x30, 0xe2, 0x93, 0x64, 0x61, 0x60, 0x60, 0x60, 0x90,
0x7e, 0xc8, 0x85, 0x55, 0xf2, 0xa9, 0xfc, 0x37, 0x06, 0x42, 0x80, 0x89,
0x81, 0x42, 0x40, 0xb1, 0x01, 0x0c, 0x0c, 0x0c, 0x0c, 0xff, 0x1f, 0x9c,
0x99, 0xfc, 0x1f, 0x46, 0x23, 0xb3, 0x89, 0x08, 0x1f, 0x84, 0x0b, 0x1e,
0x9c, 0x99, 0xcc, 0x80, 0x8d, 0x4d, 0x73, 0x2f, 0x30, 0x52, 0x1a, 0x8d,
0x8c, 0xc4, 0x84, 0x11, 0xc1, 0x74, 0x40, 0x08, 0xd4, 0x2e, 0x7c, 0x8d,
0x55, 0xbc, 0x39, 0x5e, 0x74, 0x90, 0xa4, 0x03, 0x8a, 0xd2, 0x09, 0xd1,
0x2e, 0xc0, 0x95, 0x4e, 0xa8, 0x92, 0x0e, 0x28, 0x8a, 0x46, 0x00, 0xef,
0x1a, 0x34, 0xff, 0xa9, 0x6d, 0x23, 0xb8, 0x00, 0x00, 0x00, 0x00, 0x49,
0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82

BIN
Sources/Gui/Icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

4
Sources/Gui/MakeIcon.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
xxd -i < Icon.png > Icon.inc