SDLWindow::~SDLWindow()
{
if (mScreen != NULL)
// according to http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetVideoMode
SDL_FreeSurface(mScreen);
// never free the surface returned from SDL_SetVideoMode
/*if (mScreen != NULL)
SDL_FreeSurface(mScreen);*/
}
bool requiresTextureFlipping() const { return false; }
bool isFullScreen(void) const
return ( mScreen->flags & SDL_FULLSCREEN ) == SDL_FULLSCREEN;
};