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 ); }
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 ); }