graphics: removed all the warnings about "losses of precision" on osx/clang/64bits