Better accuracy Xdraw, fixed precalculate bug