Every time I run my application the colors change, the display is as below
Display = SDL_SetVideoMode(WIDTH, HEIGHT, 16, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_ASYNCBLIT)
and then I do
SDL_FillRect(Display, &Woutput, colors[1]);
colors var info:
Uint32 colors[3];
colors[1] = SDL_MapRGB(Surf_Display->format, 32, 32, 255);
If I change SDL_FillRect(Display, &Woutput, colors[1]);
to SDL_FillRect(Display, &Woutput, SDL_MapRGB(Surf_Display->format, 32, 32, 255));
it works correctly which makes me believe that it has something to do with the Uint32, but not sure what to change it to.