From: <pan...@li...> - 2013-03-02 12:18:13
|
branch: details: http://panotools.hg.sourceforge.net/hgweb/panotools/panotools/hgroot/panotools/libpano/rev/e4a5489e244d changeset: 771:e4a5489e244d user: tmodes date: Sat Mar 02 13:14:32 2013 +0100 description: Fixes some typos diffstat: filter.h | 2 +- panorama.h | 2 +- parser.c | 25 ++++++++++++------------- 3 files changed, 14 insertions(+), 15 deletions(-) diffs (75 lines): diff -r 1299ba47658f -r e4a5489e244d filter.h --- a/filter.h Thu Jan 31 18:14:13 2013 +0100 +++ b/filter.h Sat Mar 02 13:14:32 2013 +0100 @@ -369,7 +369,7 @@ // Tilt double tilt[4]; // 0 around x, 1 around y, 2 around z, 3 scaling factor - // Translation of cmaera plane + // Translation of camera plane double trans[3]; // For testing new projections double test[4]; diff -r 1299ba47658f -r e4a5489e244d panorama.h --- a/panorama.h Thu Jan 31 18:14:13 2013 +0100 +++ b/panorama.h Sat Mar 02 13:14:32 2013 +0100 @@ -186,7 +186,7 @@ double tilt_z; // tilt on z values double tilt_scale; // scale for tilting - int trans; // traslation of camera plane requested? + int trans; // translation of camera plane requested? double trans_x; // x component of translation vector double trans_y; // y component of translation vector double trans_z; // z component of translation vector diff -r 1299ba47658f -r e4a5489e244d parser.c --- a/parser.c Thu Jan 31 18:14:13 2013 +0100 +++ b/parser.c Sat Mar 02 13:14:32 2013 +0100 @@ -409,12 +409,11 @@ if (li == NULL) return -1; // Make sure that we only apply trans when these parameters are not zero // Otherwise images are not rendered beyond 180 degrees FOV - if (im->cP.trans_x != 0.0 || - im->cP.trans_y != 0.0 || - im->cP.trans_z != 0.0) - { - im->cP.trans = TRUE; - } + if (im->cP.trans_x != 0.0 || + im->cP.trans_y != 0.0 || + im->cP.trans_z != 0.0) { + im->cP.trans = TRUE; + } break; case 'e': // test parameters li++; @@ -603,7 +602,7 @@ READ_OPT_VAR(transZopt); break; default: - PrintError("Unknown variable name to optimize Ti%c in script: Line %d", *li, lineNum); + PrintError("Unknown variable name to optimize Tr%c in script: Line %d", *li, lineNum); return -1; } break; @@ -1760,14 +1759,14 @@ READ_VAR("%lf",&(im.cP.trans_z)); break; default: - PrintError("Unknown variable name Ti%c in script", *ch); + PrintError("Unknown variable name Tr%c in script", *ch); return -1; } - if (im.cP.trans_x != 0.0 || - im.cP.trans_y != 0.0 || - im.cP.trans_z != 0.0) { - im.cP.trans = TRUE; - } + if (im.cP.trans_x != 0.0 || + im.cP.trans_y != 0.0 || + im.cP.trans_z != 0.0) { + im.cP.trans = TRUE; + } break; case 'e': ch++; |