Changed: resizing viewport with window

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

Automatic selection of better pixel format for current platform.