The floor function in display/viewport.cc requires to
#include <cmath>
to compile.
Or rather math.h, which is more in the style of the other includes.
Fixed in 6820 (along with some accidental climate code which will be tidied up shortly...)
Is this piece of code
found_i = ((int)floor(base_i/(double)rw4)) + i_off;
not equivalent to
found_i = base_i / rw4 + i_off;
?? Integer division does the rounding it self.
Or maybe
found_i = (base_i + rw4*i_off) / rw4;
found_i = base_i / rw4 + i_off;
does not give identical values
however
found_i = (base_i + rw4*i_off) / rw4;
does give the same result so I've changed the code to this in 6822 and removed the math.h header include. Actually I've also moved the rw4*i_off to outside the height loop as that should be marginally more efficient...
I come back to the forum and you already identified and repaired the bug! oh boy, good! ;) Thx.
Thank you all.