I’m a beginner for SDL and I’m reading the book “Focus on SDL”.
When I was trying SDL_GetVideoInfo() as below, (SDL version 1.2.11,
VS2005/VC6 on Windows)
…
const SDL_VideoInfo *g_pVideoInfo = NULL;
int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_VIDEO);
atexit(SDL_Quit);
g_pVideoInfo = SDL_GetVideoInfo();
…
I got the following result:
Video Information:
hw_available? 0
wm_available? 1
blit_hw? 0
blit_hw_CC? 0
blit_hw_A? 0
blit_sw? 0
blit_sw_CC? 0
blit_sw_A? 0
blit_fill? 0
video memory(in K)? 0
bits per pixel? 32
Then, I used a much older version of SDL, maybe 0.9.8, built by myself.
I got a very different result:(the memory is equal to Windows recognized)
Video Information:
hw_available? 1
wm_available? 1
blit_hw? 1
blit_hw_CC? 1
blit_hw_A? 0
blit_sw? 1
blit_sw_CC? 1
blit_sw_A? 0
blit_fill? 1
video memory(in K)? 850236
bits per pixel? 32
Why different?
Which is true? If the older is right, what’s wrong with the new one?
Acceleratable or not?–
??
Li Bo
@Li_Bo