Changed: resizing viewport with window

Viewport resized with window, without scale changes.
Optimized: onscreen drawing

Automatic selection of better pixel format for current platform.
Merge pull request #155 from wdigger/master

Automatic selection of better pixel format for current platform.
Window resizing with corresponding change to viewport size.