Fullscreen DGA support on XFree

Hi all,

Anyone can help me out with DGA/Fullscreen support on XFree
when running an SDL program as root? How can I safely
detect it, and force SDL to use it?

Regards,
Attila Grosz

“Gr?sz Attila” wrote:

Hi all,

Anyone can help me out with DGA/Fullscreen support on XFree
when running an SDL program as root? How can I safely
detect it, and force SDL to use it?

If you pass in the SDL_FULLSCREEN flag to SDL_SetVideoMode, it should
all be automatic - if DGA is available SDL will try and use it.
(Hmmm… how is SDL_FULLSCREEN handled when DGA isn’t available?)

Can you get other (non-SDL) programs running in DGA? If not, maybe your
XFree86 configuration needs a little hacking…

Ben.–
Ben Campbell
Programmer, Creature Labs
ben.campbell at creaturelabs.com
http://www.creaturelabs.com

It was my understanding that SDL uses the X vidmode extension for
fullscreen by default. The vidmode extension allows resizing the
desktop to any of the configured resolutions and does not require
root priviledges. To make SDL use DGA for video, you have to set
the SDL_VIDEODRIVER environment variable to ‘dga’ iirc.On Wed, 04 Apr 2001 10:06:42 +0100, ben.campbell at creaturelabs.com wrote:

Anyone can help me out with DGA/Fullscreen support on XFree
when running an SDL program as root? How can I safely
detect it, and force SDL to use it?

If you pass in the SDL_FULLSCREEN flag to SDL_SetVideoMode, it should
all be automatic - if DGA is available SDL will try and use it.
(Hmmm… how is SDL_FULLSCREEN handled when DGA isn’t available?)

Can you get other (non-SDL) programs running in DGA? If not, maybe your
XFree86 configuration needs a little hacking…

christian zander paranoia, n.: a healthy understanding
zander at hdz.uni-dortmund.de of the way the universe works.

Hi all,

Anyone can help me out with DGA/Fullscreen support on XFree
when running an SDL program as root? How can I safely
detect it, and force SDL to use it?

This is a FAQ:
http://www.libsdl.org/faq/FAQ-Linux.html#LINUX_12

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software