3) If SDL_MUSTLOCK determines that the screen must be locked it then goes to the next if statement which says if SDL_LockSurface(screen) is an error then return. It doesn't seem SDL_LockSurface is ever actually called though, so I don't see how it can test if it is an error or not
things that are functions inside of if statements are called, then checked, ( i think )
its the same with the message box thing:
Code:
if( MessageBox(NULL, "Click Ok", "Ok", MB_OK) == ID_OK )
{
MessageBox(NULL, "You clicked OK", "YAY", MB_OK);
}
(something like that)