[SDL] Getting the system resolution

Nuno Santos developer at imaginando.net
Sun Dec 3 16:42:03 PST 2006


Hi,

I'm working wih the sdl latest stable compiled source.

I'm working with OSX, so i won't be able to get this, right?

Cheers,

Nuno

Em Dec 3, 2006, às 10:29 PM, Peter Mulholland escreveu:

> Hello Nuno,
>
> Sunday, December 3, 2006, 8:44:03 PM, you wrote:
>
>> I have errors.
>
>> I think i don't have the right version. My version is 1.2.11.
>
> You cannot have 1.2.11 if you don't have current_w and current_h  
> fields
> in the SDL_VideoInfo struct. If you are working on Linux, and using
> your distribution's packaged version which says it is 1.2.11, it is
> lying - remove it and install from a source build. Ideally, you should
> check out the version from SVN and use this.
>
> If you are using Windows, I just checked the SDL-devel-1.2.11-VC6.zip
> and SDL-devel-1.2.11-mingw32.tar.gz archives - they both have the
> SDL_video.h that defines current_w and current_h as well.
>
>
>> I have the following errors:
>
>> error: 'SDL_SysWMinfo' has no member named 'subsystem'
>> error: 'SDL_SYSWM_X11' undeclared (first use in this function)
>> error: 'SDL_SysWMinfo' has no member named 'info'
>
> This will only work on Linux/BSD/any X11 system, and isn't portable.
>
> -- 
> Best regards,
>  Peter                            mailto:darkmatter at freeuk.com
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl





More information about the SDL mailing list