Fixed a small bug involving border drawing and
screen edges.