MCPcopy Create free account
hub / github.com/TASEmulators/fceux / vsync_changed

Method vsync_changed

src/drivers/Qt/ConsoleVideoConf.cpp:799–819  ·  view source on GitHub ↗

----------------------------------------------------

Source from the content-addressed store, hash-verified

797}
798//----------------------------------------------------
799void ConsoleVideoConfDialog_t::vsync_changed( int value )
800{
801 //printf("Value:%i \n", value );
802 bool opt = (value != Qt::Unchecked);
803 g_config->setOption("SDL.VideoVsync", opt );
804 g_config->save ();
805
806 if ( consoleWindow != NULL )
807 {
808 if ( consoleWindow->viewport_GL )
809 {
810 // QOpenGLWidget required full driver reset
811 //consoleWindow->viewport_GL->setVsyncEnable( opt );
812 consoleWindow->loadVideoDriver( 0, true );
813 }
814 else if ( consoleWindow->viewport_Interface )
815 {
816 consoleWindow->viewport_Interface->setVsyncEnable( opt );
817 }
818 }
819}
820//----------------------------------------------------
821void ConsoleVideoConfDialog_t::intFrameRate_changed( int value )
822{

Callers

nothing calls this directly

Calls 4

setOptionMethod · 0.80
loadVideoDriverMethod · 0.80
saveMethod · 0.45
setVsyncEnableMethod · 0.45

Tested by

no test coverage detected