Fixed issue where the viewport's width and/or height could be off by 1 pixel

Signed-off-by: Stefan Schindler <stefan@boxbox.org>