Rev 198 | Rev 206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 198 | Rev 201 | ||
---|---|---|---|
Line 125... | Line 125... | ||
125 | // Due to compatibility reasons, we adopt that behavior. |
125 | // Due to compatibility reasons, we adopt that behavior. |
126 | if(varused['v']) var['v'] = (( 614777L*var['r'])+(-514799L*var['g'])+(- 99978L*var['b']))/2000000; // range: [-78..78] |
126 | if(varused['v']) var['v'] = (( 614777L*var['r'])+(-514799L*var['g'])+(- 99978L*var['b']))/2000000; // range: [-78..78] |
127 | #endif |
127 | #endif |
128 | 128 | ||
129 | } |
129 | } |
130 | if(varused['d']) var['d'] = ff_c2d(var['X']/2 - var['x'], var['Y']/2 - var['y']); |
130 | if(varused['d']) var['d'] = ff_c2d_negated(var['X']/2 - var['x'], var['Y']/2 - var['y']); |
131 | if(varused['m']) var['m'] = ff_c2m(var['X']/2 - var['x'], var['Y']/2 - var['y']); |
131 | if(varused['m']) var['m'] = ff_c2m(var['X']/2 - var['x'], var['Y']/2 - var['y']); |
132 | 132 | ||
133 | for(k = 0; k < nplanes; ++k){ |
133 | for(k = 0; k < nplanes; ++k){ |
134 | if(needinput) |
134 | if(needinput) |
135 | var['c'] = inp[k]; |
135 | var['c'] = inp[k]; |