FreeBASIC  0.91.0
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 */
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 */
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 
27 {
28  static int inited = FALSE;
29 
30  if (inited)
31  return;
32 
33  ssize_t size = DATA_SIZE;
35 
36  inited = TRUE;
37 }