示例#1
0
void SetVideoSettings::_exec(Game& game, unsigned int)
{
  gui::VideoOptionsWindow* dialog = new gui::VideoOptionsWindow( game.gui()->rootWidget(),
                                                                 game.engine()->modes(),
                                                                 game.engine()->isFullscreen() );

  CONNECT( dialog, onSreenSizeChange(), this, SetVideoSettings::_setResolution );
  CONNECT( dialog, onFullScreenChange(), this, SetVideoSettings::_setFullscreen );
}
示例#2
0
void SetVideoSettings::exec(Game& game)
{
  gui::VideoOptionsWindow* dialog = new gui::VideoOptionsWindow( game.getGui()->getRootWidget(),
                                                                 game.getEngine()->getAvailableModes(),
                                                                 game.getEngine()->isFullscreen() );

  CONNECT( dialog, onSreenSizeChange(), this, SetVideoSettings::_setResolution );
  CONNECT( dialog, onFullScreenChange(), this, SetVideoSettings::_setFullscreen );
}