 		; If by misadventure the values are zero
 			if (LNKFlag(PrgLnkInf[selPrgChoice]) > -1) ; don't want the msgbox as ResIndex is already disabled
 			MsgBox, 8192, No Resolution Mode, Monitor parameters for the selected or startup Prg do not exist!`n`nDefaults assumed.`nIt's recommended to save the parameters by reselecting the target monitor from the Monitor List, and, if required, changing the resolution mode.
-		GetDisplayData(targMonitorNum, , , , scrWidth, scrHeight, scrFreq, , , (regoVar)? ENUM_REGISTRY_SETTINGS: ENUM_CURRENT_SETTINGS, 1)
+		GetDisplayData(targMonitorNum, , , , scrWidth, scrHeight, scrFreq, , , (PrgLnch.regoVar)? ENUM_REGISTRY_SETTINGS: ENUM_CURRENT_SETTINGS, 1)
 		PrgLnchOpt.scrWidthDef := scrWidth
 		PrgLnchOpt.scrHeightDef := scrHeight
 		PrgLnchOpt.scrFreqDef := scrFreq

Gui, PrgLnchOpt: Add, Text, ys cTeal vcurrRes HWNDcurrResHwnd wp
Gui, PrgLnchOpt: Add, Checkbox, vallModes gCheckModes HWNDallModesHwnd, List all 'compatible'

GuiControl, PrgLnchOpt:, Rego, % regoVar

GuiControl, PrgLnchOpt:, PrgChoice, %strPrgChoice%


	NumPut(cbSize, Device_Mode, OffsetDWORD + 32, "Ushort")
	}

	GetDisplayData(targMonitorNum, , , , , , , scrInterlace, scrDPI ,(PrgLnch.regoVar)? ENUM_REGISTRY_SETTINGS: ENUM_CURRENT_SETTINGS, 1)


	;The following values should never change, but just in case!
