   Question about SDL_GetVideoInfo
  Hello :)I would like to use GetVideoInfo to set my game resolution. It will give me the current desktop resolution or the best one?What about the "videoInfo->vfmt->BitsPerPixel"? (videoInfo is the struct returned by GetVideoInfo) It is the current bits or the best one?There is any function that returns the display refresh rate?I am using 50 fps in my game, it will make any difference on a 60 Hz monitor?Anyone ever tried to make a 2D game using SDL + OpenGL? Is that a good choice? (I am using only SDL at the moment)Thank you.   
Quote:I would like to use GetVideoInfo to set my game resolution. It will give me the current desktop resolution or the best one?What about the "videoInfo->vfmt->BitsPerPixel"? (videoInfo is the struct returned by GetVideoInfo) It is the current bits or the best one?IIRC, if you call SDL_GetVideoSurface() before calling SDL_SetVideoMode(), the returned surface will describe the current desktop video mode. (I'm not sure about SDL_GetVideoInfo().)Quote:There is any function that returns the display refresh rate?I am using 50 fps in my game, it will make any difference on a 60 Hz monitor?SDL 1.2.x doesn't expose the monitor refresh rate. SDL 1.3 does, but it's still in development (although it may be fine to use at this point).As for limiting your game to 50 FPS, that may give you undesirable results if v-sync is turned on. Is there any particular reason you're limiting the FPS in this way? And why 50?Quote:Anyone ever tried to make a 2D game using SDL + OpenGL? Is that a good choice? (I am using only SDL at the moment)SDL + OpenGL is a perfectly fine choice.   ;  In my engines, I use both SDL and OpenGL for 2D at the same time, with a changeable option ingame to swap between the two, while using OpenGL for 3D.   