FIX IT!!!
Add this line:
void dbSetBitmapFormat( int iFormat );
To:
Quote: "
dbSetBitmapFormat
This command will set any future bitmap created to the following format. Be aware that not all surface formats support a render target bitmap. Here are some common values you can set:
20 24-bit RGB pixel format with 8 bits per channel.
21 32-bit ARGB pixel format with alpha, using 8 bits per channel.
22 32-bit RGB pixel format, where 8 bits are reserved for each color.
23 16-bit RGB pixel format with 5 bits for red, 6 bits for green, and 5 bits for blue.
24 16-bit pixel format where 5 bits are reserved for each color.
25 16-bit pixel format where 5 bits are reserved for each color and 1 bit is reserved for alpha.
26 16-bit ARGB pixel format with 4 bits for each channel.
32 32-bit ARGB pixel format with alpha, using 8 bits per channel.
33 32-bit RGB pixel format, where 8 bits are reserved for each color.
Syntax
dbSetBitmapFormat(Bitmap Format Number)
"