Fixed drawing issues when zoomed.
Merge pull request #657 from duncanspumpkin/drawing_f

Fixed drawing issues when zoomed.