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

Method driverChanged

src/drivers/Qt/ConsoleVideoConf.cpp:903–920  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

901}
902//----------------------------------------------------
903void ConsoleVideoConfDialog_t::driverChanged(int index)
904{
905 int driver;
906 //printf("Driver: %i : %i \n", index, driverSelect->itemData(index).toInt() );
907
908 driver = driverSelect->itemData(index).toInt();
909
910 g_config->setOption ("SDL.VideoDriver", driver);
911
912 g_config->save ();
913
914 printf("Note: A restart of the application is needed for video driver change to take effect...\n");
915
916 if ( consoleWindow )
917 {
918 consoleWindow->loadVideoDriver( driver );
919 }
920}
921//----------------------------------------------------
922void ConsoleVideoConfDialog_t::scalerChanged(int index)
923{

Callers

nothing calls this directly

Calls 3

setOptionMethod · 0.80
loadVideoDriverMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected