[SDL] Beginner question: can't enter to fullscreen mode
Ferran Ferri
ferranferri at yahoo.es
Sun Jun 26 14:50:13 PDT 2005
Hi all, I'm programming with MSVC++ 7.1 (a.k.a VC++.NET). I created a
SDL project with and I can't enter in full screen mode. When I configure
the video mode I give the following flags to the SDL:
/* the flags to pass to SDL_SetVideoMode */
m_nVideoFlags = SDL_OPENGL; /* Enable OpenGL in SDL */
m_nVideoFlags |= SDL_GL_DOUBLEBUFFER; /* Enable double buffering */
m_nVideoFlags |= SDL_HWPALETTE; /* Store the palette in
hardware */
m_nVideoFlags |= SDL_RESIZABLE; /* Enable window resizing */
/* This checks to see if surfaces can be stored in memory */
if ( info->hw_available )
m_nVideoFlags |= SDL_HWSURFACE;
else
m_nVideoFlags |= SDL_SWSURFACE;
/* This checks if hardware blits can be done */
if ( info->blit_hw )
m_nVideoFlags |= SDL_HWACCEL;
===================================================================
the procedure to enter to the full screen mode is:
void CGameEngine::toggleToFullScreenMode()
{
if (SDL_WM_ToggleFullScreen(m_mainScreen) == 0){
printf("Unable to go to full sreen: %s
\n",SDL_GetError());
}
}
And the project is a console project. Some ideas?
Thanks to all.
Ferran Ferri Perez
Software Engineer
RedSauce S.L.
______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es
More information about the SDL
mailing list