Fixed viewport error caused by rounding
Merge pull request #237 from vaguilar/fix-viewport

Fixed viewport error caused by rounding