fixed redraw area calculation