Only repaint the entire screen if needed