[SDL] Getting the system resolution
Peter Mulholland
darkmatter at freeuk.com
Sat Dec 2 07:49:03 PST 2006
Hello Nuno,
Saturday, December 2, 2006, 3:39:53 PM, you wrote:
> Hi,
> Is there any way of knowing the system resolution automaticly inside
> SDL?
> For example, if we are running the app in windows or osx, know which
> resolution is being used in the desktop.
Call SDL_GetVideoMode() before you call SDL_SetVideoMode(), and the
SDL_VideoInfo structure will contain the desktop resolution.
--
Best regards,
Peter mailto:darkmatter at freeuk.com
More information about the SDL
mailing list