diff options
| author | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
| commit | 85aefb4ba131521595e48fe1a25f4db9a69e71e6 (patch) | |
| tree | f1c73a42b369f362a40ea251281d98ee02bf0a98 /grapher/Models/Options/ApplyOptions.cs | |
| parent | add os detection to installer (diff) | |
| download | rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.tar.xz rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.zip | |
add arg checks in wrapper
minor changes to settings shape, requires driver reinstall
add error handling to writer
grapher changes:
add prettier serialization + comments
add elements for scale and separated limit/exp
reset irrelevant (invisible) arg input before checks/write
Diffstat (limited to 'grapher/Models/Options/ApplyOptions.cs')
| -rw-r--r-- | grapher/Models/Options/ApplyOptions.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs index c2ed498..51c80ea 100644 --- a/grapher/Models/Options/ApplyOptions.cs +++ b/grapher/Models/Options/ApplyOptions.cs @@ -89,14 +89,14 @@ namespace grapher.Models.Options }; } - public Vec2<AccelArgs> GetArgs() + public Vec2<AccelArgs> GetUpdatedArgs(ref /*readonly*/ Vec2<AccelArgs> last) { - var xArgs = OptionSetX.GenerateArgs(); + var xArgs = OptionSetX.GenerateArgs(ref last.x); return new Vec2<AccelArgs> { x = xArgs, - y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs() + y = ByComponentVectorXYLock.Checked ? xArgs : OptionSetY.GenerateArgs(ref last.y) }; } |