setup screen size and game frame depending on windowed flag