Here is the sync for FPS and TURBO.
Warning, there is a new void SetTurboMode() in overlay.h, to avoid code duplication.
New version number #2.83
PS: There is a problem with the straylight computation now that the slider orientation has been changed
Added:
Here is the fix
void Mobj_resetLighting() { // PAT: 01-09-2018
long nStrayLight = Mobj_strayLight(0, FALSE); // PAT: 01-10-2018
SendMessage(GetDlgItem(gP.hMain, IDC_BRIGHT_CONTROL), TBM_SETPOS, TRUE, nStrayLight); // this also sets gP.rIllumFactor = 1.0f
// zizi SendMessage(gP.hMain, WM_VSCROLL, MAKELONG(SB_THUMBPOSITION, nStrayLight), (LPARAM)GetDlgItem(gP.hMain, IDC_BRIGHT_CONTROL));
SendMessage(gP.hMain, WM_HSCROLL, MAKELONG(SB_THUMBPOSITION, nStrayLight), (LPARAM)GetDlgItem(gP.hMain, IDC_BRIGHT_CONTROL));
gP.nLightFlags = 1; // bin 0001
gP.bIsLight0_On = TRUE;
gP.bIsLight1_On = gP.bIsLight2_On = gP.bIsLight3_On = gP.bMultiLight = FALSE;
CheckMenuItem(gP.hSubMenu, MENU_BRIGHT_LIGHT, MF_UNCHECKED);
//gP.light0ColorAll = gP.light1ColorAll = gP.light2ColorAll = gP.light3ColorAll = true; // MLL: unused
SetSwitch(ID_ONOFF0, gP.bIsLight0_On);
SetSwitch(ID_ONOFF1, gP.bIsLight1_On);
SetSwitch(ID_ONOFF2, gP.bIsLight2_On);
SetSwitch(ID_ONOFF3, gP.bIsLight3_On);
Mobj_lightInit();
Mobj_assignColor();
}