Switched viewport offset to translation instead of calculation. Also cleanup.