Refactor paintScrolling to not use calcaddress