Problem when changing screen res during a game

Blitz3D Forums/Blitz3D Beginners Area/Problem when changing screen res during a game

while game=1
run_menu_system()
if graphics_changed then
scale2d_graphics_to suit()
end if
if play_game_selected
set_graphics_3d()
load_world_and_object_data()
play_game()
end if
wend

OR

while game=1
run_menu_system()
if play_game_selected
set_graphics_3d_to_selected_res()
load_world_and_object_data()
play_game()
end if
wend


WRONG:

Set_graphics3d
load_world_and_object_data()
while game(1)
overlay_2d_menu_graphics()
if play_game_selected
change_res_to_user_spec()
play_game()
end if
wend

the last one will reset your world when you reset the graphics res so dont do it :)