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

Due to float imprecision there was a bug causing a viewport to be 1 pixel smaller in width and/or height than it should be.