Fix drawing code for non-retina displays.