that seems to work.
Now have to do the size ask in the main, and draw using SDL/Qt/Opengl