   SDL fullscreen problem
  Hi,I use SDL and OpenGL.1) I can't get a fullscreen (see init code below).2) Stranger, if I don't use SDL_FULLSCREEN, I don't see anything on the screen.I have tried with SDL 1.2.8 and 1.2.9Thanks in advance for any answer...int TDE_CreateSDLDisplay(int width, int height, int bpp, int flags){int sdl_flags = 0;const SDL_VideoInfo *videoinfo;SDL_Init(SDL_INIT_VIDEO);videoinfo = SDL_GetVideoInfo();if (videoinfo == NULL) {fprintf(stderr, "TDE: can't get video info (%s)\n",SDL_GetError());return -1;}sdl_flags |= SDL_OPENGL;if (flags & TDE_FULLSCREEN)    sdl_flags |= SDL_FULLSCREEN;if (flags & TDE_DOUBLEBUFFER) {sdl_flags |= SDL_DOUBLEBUF;SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);}if (videoinfo->blit_hw)sdl_flags |= SDL_HWACCEL;if (videoinfo->hw_available)sdl_flags |= SDL_HWSURFACE;else   sdl_flags |= SDL_SWSURFACE;   // Set a few OpenGL attributes.if (bpp == 8) {SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 2);SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 3);SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 3);SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);} else if (bpp == 16) {SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 6);SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0);} else if (bpp == 24) {SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 0); } else if (bpp == 32) {SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);}if (NULL == SDL_SetVideoMode(width, height, bpp, flags)) {fprintf(stderr, "TDE: can't set video mode (%dx%dx%d) (%s)\n",width, height, bpp, SDL_GetError());return -1;}return 0;}   
  The problem is solved. I was using flags instead of sdl_flags in SDL_SetVideoMode...   