initialise the view in CDisplay::Open() and update it only when the framebuffer changes size
vsync is now a config option; config reading is now more intuitive
move duplicated viewport code to a function