Skip to content

Commit 656c1b3

Browse files
committed
Fixes
1 parent 5cf0113 commit 656c1b3

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

TrueOpenVR SteamVR/Unit1.pas

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
5353
Error: boolean;
5454

5555
RenderWidth, RenderHeight, ScreenIndex: integer;
56-
IPD, DistortionK1, DistortionK2, DistanceScaleX, DistanceScaleY,
57-
DistanceBetweenEyes, ScreenOffsetX: double;
56+
IPD, DistortionK1, DistortionK2: double;
5857
begin
5958
Error:=false;
6059
Reg:=TRegistry.Create;
@@ -75,10 +74,6 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
7574
IPD:=Reg.ReadFloat('IPD');
7675
DistortionK1:=Reg.ReadFloat('DistortionK1');
7776
DistortionK2:=Reg.ReadFloat('DistortionK2');
78-
DistanceScaleX:=Reg.ReadFloat('DistanceScaleX');
79-
DistanceScaleY:=Reg.ReadFloat('DistanceScaleY');
80-
DistanceBetweenEyes:=Reg.ReadFloat('DistanceBetweenEyes');
81-
ScreenOffsetX:=Reg.ReadFloat('ScreenOffsetX');
8277
except
8378
Error:=true;
8479
end;
@@ -116,13 +111,6 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
116111
Config.Text:=StringReplace(Config.Text, '<DISTORTIONK1>', StringReplace(FloatToStr(DistortionK1), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
117112
Config.Text:=StringReplace(Config.Text, '<DISTORTIONK2>', StringReplace(FloatToStr(DistortionK2), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
118113

119-
//Need to convert / Íóæíî êîíâåðòèðîâàòü
120-
//Config.Text:=StringReplace(Config.Text, '<ZOOMWIDTH>', StringReplace(FloatToStr(DistanceScaleX), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
121-
//Config.Text:=StringReplace(Config.Text, '<ZOOMHEIGHT>', StringReplace(FloatToStr(DistanceScaleY), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
122-
123-
//Config.Text:=StringReplace(Config.Text, '<DISTANCEBETWEENEYES>', StringReplace(FloatToStr(DistanceBetweenEyes), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
124-
//Config.Text:=StringReplace(Config.Text, '<SCREENOFFSETX>', StringReplace(FloatToStr(ScreenOffsetX), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
125-
126114
Config.Text:=StringReplace(Config.Text, '<IPD>', StringReplace(FloatToStr(IPD), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
127115

128116
if DbgMdCb.Checked then

0 commit comments

Comments
 (0)