mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-30 01:48:43 +02:00
Extended the device parameter notation to include offsets using
'+' and '-' in the same way that '*' is currently used for specifying a parameter scaling. The combination of a scale and offset for the same parameter has not (yet) been implemented.
This commit is contained in:
@@ -1662,6 +1662,10 @@ extOutputParameters(def, transList, outFile)
|
||||
fprintf(outFile, " %c%c=%s*%g",
|
||||
plist->pl_param[0], plist->pl_param[1],
|
||||
plist->pl_name, plist->pl_scale);
|
||||
else if (plist->pl_offset != 0.0)
|
||||
fprintf(outFile, " %c%c=%s%+g",
|
||||
plist->pl_param[0], plist->pl_param[1],
|
||||
plist->pl_name, plist->pl_offset);
|
||||
else
|
||||
fprintf(outFile, " %c%c=%s", plist->pl_param[0],
|
||||
plist->pl_param[1], plist->pl_name);
|
||||
@@ -1672,6 +1676,10 @@ extOutputParameters(def, transList, outFile)
|
||||
fprintf(outFile, " %c=%s*%g",
|
||||
plist->pl_param[0],
|
||||
plist->pl_name, plist->pl_scale);
|
||||
if (plist->pl_offset != 0.0)
|
||||
fprintf(outFile, " %c=%s%+g",
|
||||
plist->pl_param[0],
|
||||
plist->pl_name, plist->pl_offset);
|
||||
else
|
||||
fprintf(outFile, " %c=%s", plist->pl_param[0],
|
||||
plist->pl_name);
|
||||
|
||||
Reference in New Issue
Block a user