FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
gfx_paletteusing.c
Go to the documentation of this file.
1
#include "
fb_gfx.h
"
2
3
FBCALL
void
fb_GfxPaletteUsing
(
int
*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, data[i]);
15
}
16
17
fb_hMemSet
(
__fb_gfx
->
dirty
,
TRUE
,
__fb_gfx
->
h
);
18
19
DRIVER_UNLOCK
();
20
}
gfxlib2
gfx_paletteusing.c
Generated on Thu Jan 23 2014 19:40:06 for FreeBASIC by
1.8.4