Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
r57zone committed May 10, 2018
1 parent 5cf0113 commit 656c1b3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions TrueOpenVR SteamVR/Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
Error: boolean;

RenderWidth, RenderHeight, ScreenIndex: integer;
IPD, DistortionK1, DistortionK2, DistanceScaleX, DistanceScaleY,
DistanceBetweenEyes, ScreenOffsetX: double;
IPD, DistortionK1, DistortionK2: double;
begin
Error:=false;
Reg:=TRegistry.Create;
Expand All @@ -75,10 +74,6 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
IPD:=Reg.ReadFloat('IPD');
DistortionK1:=Reg.ReadFloat('DistortionK1');
DistortionK2:=Reg.ReadFloat('DistortionK2');
DistanceScaleX:=Reg.ReadFloat('DistanceScaleX');
DistanceScaleY:=Reg.ReadFloat('DistanceScaleY');
DistanceBetweenEyes:=Reg.ReadFloat('DistanceBetweenEyes');
ScreenOffsetX:=Reg.ReadFloat('ScreenOffsetX');
except
Error:=true;
end;
Expand Down Expand Up @@ -116,13 +111,6 @@ procedure TMain.ApplyBtnClick(Sender: TObject);
Config.Text:=StringReplace(Config.Text, '<DISTORTIONK1>', StringReplace(FloatToStr(DistortionK1), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
Config.Text:=StringReplace(Config.Text, '<DISTORTIONK2>', StringReplace(FloatToStr(DistortionK2), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);

//Need to convert / Íóæíî êîíâåðòèðîâàòü
//Config.Text:=StringReplace(Config.Text, '<ZOOMWIDTH>', StringReplace(FloatToStr(DistanceScaleX), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
//Config.Text:=StringReplace(Config.Text, '<ZOOMHEIGHT>', StringReplace(FloatToStr(DistanceScaleY), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);

//Config.Text:=StringReplace(Config.Text, '<DISTANCEBETWEENEYES>', StringReplace(FloatToStr(DistanceBetweenEyes), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);
//Config.Text:=StringReplace(Config.Text, '<SCREENOFFSETX>', StringReplace(FloatToStr(ScreenOffsetX), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);

Config.Text:=StringReplace(Config.Text, '<IPD>', StringReplace(FloatToStr(IPD), DecimalSeparator, '.', [rfReplaceAll]), [rfReplaceAll]);

if DbgMdCb.Checked then
Expand Down

0 comments on commit 656c1b3

Please sign in to comment.