Fix small errors. Does not work with window resize.
Fixed small bug causing a crash when resizing.
Added stub viewport_paint function
Added error_string_quit and a litle part of viewport_create