public void invalidate() { super.invalidate(); if (offscreen != null) offscreen.flush(); offscreen = null; }