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

Function FCEU_ResetVidSys

src/fceu.cpp:1070–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070void FCEU_ResetVidSys(void) {
1071 int w;
1072
1073 if (GameInfo->vidsys == GIV_NTSC)
1074 w = 0;
1075 else if (GameInfo->vidsys == GIV_PAL) {
1076 w = 1;
1077 dendy = 0;
1078 } else
1079 w = FSettings.PAL;
1080
1081 PAL = w ? 1 : 0;
1082
1083 if (PAL)
1084 dendy = 0;
1085
1086 if (newppu)
1087 overclock_enabled = 0;
1088
1089 normalscanlines = (dendy ? 290 : 240)+newppu; // use flag as number!
1090 totalscanlines = normalscanlines + (overclock_enabled ? postrenderscanlines : 0);
1091 FCEUPPU_SetVideoSystem(w || dendy);
1092 SetSoundVariables();
1093}
1094
1095FCEUS FSettings;
1096

Callers 2

FCEUI_LoadGameVirtualFunction · 0.85
FCEUI_SetVidSystemFunction · 0.85

Calls 2

FCEUPPU_SetVideoSystemFunction · 0.85
SetSoundVariablesFunction · 0.85

Tested by

no test coverage detected