I am using two functions to test if my programs using the hardware surfaces. However, the results are different.
1> result is videoInfo->hw_available is 0
videoInfo = SDL_GetVideoInfo();
if(!videoInfo->hw_available) //here videoInfo->hw_available is 0
out << "not hardware surface!";
2> result is (screen->flags & SDL_HWSURFACE) is 1
screen = SDL_SetVideoMode( screenWidth, screenHeight, screenBpp, videoFlags );
if(screen->flags & SDL_HWSURFACE == 0) //here (screen->flags & SDL_HWSURFACE) is 1
out << "not hardware surface!";
So, the 1st one means my video hardware is not available for my SDL program, while the 2nd one means I am actually using a hardware video surface...
I am confused.
[Edited by - mylifemysoul on March 31, 2010 9:30:31 PM]