FreeBASIC  0.91.0
gfx_palettegetusing64.c
Go to the documentation of this file.
1 /* retrieve whole palette into an array */
2 
3 #include "fb_gfx.h"
4 
5 FBCALL void fb_GfxPaletteGetUsing64(long long *data)
6 {
7  int i, imax;
8 
9  if (!__fb_gfx)
10  return;
11 
13  if(imax > (1 << __fb_gfx->depth))
14  imax = (1 << __fb_gfx->depth);
15 
16  for (i = 0; i < imax; i++)
17  data[i] = (__fb_gfx->device_palette[i] & 0xFCFCFC) >> 2;
18 }