2 questions

Hello!
I have 2 questions on SDL:

  1. How can I get SDL_Color of specified pixel from SDL_Surface? I think
    about getpixel (from docs) and then SDL_GetRGB. Is it OK for not 8bpp
    surfaces?

  2. I need to port from win32 MFC ::PostMessage(MSG_ID, WPARAM param1,
    LPARAM param2) to SDL’s events. I see that they very similar. Have you
    got any suggestions on it?

Thank you.

Evgeny