Added function to modify the viewport dimension
Merge remote-tracking branch 'jackyb/swrenderer'