Problem with hw acceleration

Hi, I’m new with SDL and I have a problem with the
hardware acceleration. The following code set the
video mode and than check sdl_info to see if hw can be
use.

const SDL_VideoInfo *Info;
// initialize SDL’s video system and check for error
if(SDL_Init(SDL_INIT_VIDEO) != 0)
{
printf(“unable to initialize SDL: %s\n”,
SDL_GetError());
return 1;
}
atexit(SDL_Quit);
// setup a 800 * 600 hicolor video mode with doubleBuf
theScreen = SDL_SetVideoMode(SCREENX, SCREENY, 16,
SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_ANYFORMAT) |
SDL_FULLSCREEN);
if(theScreen == NULL)
{
printf(“Unable to set video mode : %s\n”,
SDL_GetError());
return 1;
}

Info = SDL_GetVideoInfo();
printf(“Can use Hardware acceleration: %i\nCan use
Memory: %i\n”,
Info->hw_available, Info->video_mem);
return 0;

I have a Matrox video cards supported by my linux os
but I always get a 0 for SDL_VideoInfo->hw_available.

Can anyone help me ???

Kevin Martinet__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Kevin Martinet <kevin_martinet at yahoo.com> wrote:

I have a Matrox video cards supported by my linux os
but I always get a 0 for SDL_VideoInfo->hw_available.

This is a FAQ. www.libsdl.org

— Mattias Engdeg?rd wrote:

Kevin Martinet <@Kevin_Martinet> wrote:

I have a Matrox video cards supported by my linux
os
but I always get a 0 for
SDL_VideoInfo->hw_available.

This is a FAQ. www.libsdl.org

I already lookup the FAQ and my problem isnt with the
XFree version. I have a >4.1 version. And my card is
detected by linux.__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Kevin Martinet <kevin_martinet at yahoo.com> wrote:

I already lookup the FAQ and my problem isnt with the
XFree version. I have a >4.1 version. And my card is
detected by linux.

read again, under “General Questions”