Fix integer overflow bug that prevented 3/4ths of the canvas from rendering on AppKit