IDIB_FlushPalette is not working randomly | developer.brewmp.com IDIB_FlushPalette is not working randomly | developer.brewmp.com

Developer

IDIB_FlushPalette is not working randomly

Forums:

me->pdib->pRGB[0] = RGBVAL_TO_RGB(rgb0);
me->pdib->pRGB[1] = RGBVAL_TO_RGB(rgb1);
IDIB_FlushPalette(me->pdib);

Code above is executed before IBITMAP_BltIn is called. But palette is not set successfully randomly. Could you give me some advice?