Patch from Mark Wooding to reorganise Loopy's redraw function to be