Ok,
Before now, I have never had to set a Transparent Color in SDL. I looked up what to do, so I could set a transparent color. I followed it's instructions, and well...my Program will not compile. I get two errors, and those are:
15 C:\Documents and Settings\Chad\Desktop\Distaster in 1415\main.cpp expected constructor, destructor, or type conversion before '(' token
15 C:\Documents and Settings\Chad\Desktop\Distaster in 1415\main.cpp expected `,' or `;' before '(' token
Those are the errors I get, and those errors all point to the Transparent Color Code. I look at it and the example, and it seems correct. I can't seem to figure out why though it gives me those errors. Here is the line of code that sets a Transparent Color:
SDL_SetColorKey(english, SDL_SRCCOLORKEY, SDL_MapRGB(english->format, 255, 0, 255));
That is correct isn't? That code is placed DIRECTLY under the SDL_Surface* english code. Why do I get those two errors? I can't seem to figure out why.
I know it is that line of code, because I comment that out, and it compiles fine.
I am sure it is easy to figure out again, and I am just stupid and am missing the easy mistake. It has been in my brain for 30 minutes though, and nothing!
Chad.