| 1068 | } |
| 1069 | |
| 1070 | void 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 | |
| 1095 | FCEUS FSettings; |
| 1096 |
no test coverage detected