FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
gfx_data.c
Go to the documentation of this file.
1
#include "
fb_gfx.h
"
2
3
// Pull in the auto-generated data...
4
#include "
gfxdata_inline.h
"
5
6
/* Data will be uncompressed into this buffer at runtime */
7
static
unsigned
char
internal_data
[
DATA_SIZE
];
8
9
/* must match the FB_FONT_* enum */
10
const
FONT
__fb_font
[
FB_FONT_COUNT
] =
11
{
12
{ 8, 8, &
internal_data
[
DATA_FONT_8
] },
13
{ 8, 14, &
internal_data
[
DATA_FONT_14
] },
14
{ 8, 16, &
internal_data
[
DATA_FONT_16
] }
15
};
16
17
/* must match the FB_PALETTE_* enum */
18
const
PALETTE
__fb_palette
[
FB_PALETTE_COUNT
] =
19
{
20
{ 2, &
internal_data
[
DATA_PAL_2
] },
21
{ 16, &
internal_data
[
DATA_PAL_16
] },
22
{ 64, &
internal_data
[
DATA_PAL_64
] },
23
{ 256, &
internal_data
[
DATA_PAL_256
] }
24
};
25
26
void
fb_hSetupData
()
27
{
28
static
int
inited
=
FALSE
;
29
30
if
(inited)
31
return
;
32
33
ssize_t
size
=
DATA_SIZE
;
34
fb_hDecode
(
compressed_data
,
sizeof
(
compressed_data
),
internal_data
, &size);
35
36
inited =
TRUE
;
37
}
gfxlib2
gfx_data.c
Generated on Thu Jan 23 2014 19:40:06 for FreeBASIC by
1.8.4