[SDL] Getting the system resolution
darkmatter at freeuk.com
Sun Dec 3 14:29:10 PST 2006
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.
Peter mailto:darkmatter at freeuk.com
More information about the SDL