FreeBASIC  0.91.0
gfx_paletteusing64.c
Go to the documentation of this file.
1 #include "fb_gfx.h"
2 
3 FBCALL void fb_GfxPaletteUsing64(long long *data)
4 {
5  int i;
6 
7  if ((!__fb_gfx) || (__fb_gfx->depth > 8))
8  return;
9 
10  DRIVER_LOCK();
11 
12  for (i = 0; i < (1 << __fb_gfx->depth); i++) {
13  if (data[i] >= 0)
14  fb_hSetPaletteColor(i, (int)data[i]);
15  }
16 
18 
19  DRIVER_UNLOCK();
20 }