Fix for bug #1222. The ocean background now persists if the tools menu
is opened when it is enabled. The code for drawing the ocean background
needed to be delayed till the next frame.