tweak viewport handling.

Signed-off-by: crynobone <crynobone@gmail.com>
Small tweaks.

Signed-off-by: crynobone <crynobone@gmail.com>