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

Function ToggleFullscreen

src/input.cpp:1379–1393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1377}
1378
1379void ToggleFullscreen()
1380{
1381#ifdef __WIN_DRIVER__
1382 extern int SetVideoMode(int fs); //adelikat: Yeah, I know, hacky
1383 extern void UpdateCheckedMenuItems();
1384
1385 UpdateCheckedMenuItems();
1386 changerecursive=1;
1387
1388 int oldmode = fullscreen;
1389 if(!SetVideoMode(oldmode ^ 1))
1390 SetVideoMode(oldmode);
1391 changerecursive=0;
1392#endif
1393}
1394
1395static void TaseditorRewindOn(void)
1396{

Callers 1

AppWndProcFunction · 0.85

Calls 2

UpdateCheckedMenuItemsFunction · 0.85
SetVideoModeFunction · 0.85

Tested by

no test coverage detected