N00b issues with blitting

So I’m fairly n00bish with both C++ and SDL and I’m having a problem that i
can’t seem to get past.

over at http://www.garveria.com/ee.zip i have my source and bmp images as
well as what I’ve compiled with VC++ 2008.

The problem is when I blit the tile to the map surface then the map surface
to the screen surface the colors get all jacked up,

So you’ll see a lot of tiles with the wrong color scheme…but at the bottom
you’ll see if i blit the tile directly to the screen

then the color is ok (although I can’t figure out how to mask that pink
color).

If anyone can help me i would be very appreciative.

Nevermind. SDL_DisplayFormat() fixed my issues.