Fix viewport size on High-DPI displays in examples

Closes #199
Merge pull request #201 from bjz/viewport

Fix viewport size on High-DPI displays in examples