[SDL] Getting the system resolution

Nuno Santos developer at imaginando.net
Sat Dec 2 13:27:08 PST 2006


Hi,

I'm looking to that structure and i don't see those fields:

typedef struct{
   Uint32 hw_available:1;
   Uint32 wm_available:1;
   Uint32 blit_hw:1;
   Uint32 blit_hw_CC:1;
   Uint32 blit_hw_A:1;
   Uint32 blit_sw:1;
   Uint32 blit_sw_CC:1;
   Uint32 blit_sw_A:1;
   Uint32 blit_fill;
   Uint32 video_mem;
   SDL_PixelFormat *vfmt;
} SDL_VideoInfo;

Which one is it?

And about the function. Did you mean SDL_GetVideoInfo()

Thx,

Best regards,

Nuno

Em Dec 2, 2006, às 3:49 PM, Peter Mulholland escreveu:

> Call SDL_GetVideoMode() before you call SDL_SetVideoMode(), and the
> SDL_VideoInfo structure will contain the desktop resolution.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061202/a41957bc/attachment.htm 


More information about the SDL mailing list