A few SDL questions

Hello!

I have some questions related to SDL. They are mainly about some initialization stuff so they shouldn’t be too dificult (although, I am a bit confused about it). I’d be thankful for your help!

  1. If I set the initialization flag SDL_OPENGLBLIT do I need to set SDL_DOUBLEBUF too to have double-buffering?

  2. Is it normal that when I am not using the fullscreen mode the color depth in my application is a desktop’s color?

  3. When I quit a program fullscreen mode the resoultion doesn’t return to previous one (I am using SDL_QUIT). What’s wrong?

GREAT THANKS!

SDL_OPENGLBLIT ist deprecated and shouldn’t be used (take a look at the online documentation of SDL_SetVideoMode). Try glSDL instead (http://olofson.net/mixed.html).