if (this.gui.isShowing()) { Rectangle r = new Rectangle(dirty);    updateImage(r); }
Rectangle r = new Rectangle(dirty);    updateImage(r);
   public void updateDirty() {    //LDC - 12/02/2003 - check if we must repaint it    if (drawing == false) return;    //LDC - 18/02/2003 - only update the screen when the window is showing    if (this.gui.isShowing())    {      Rectangle r = new Rectangle(dirty);      // update the image      updateImage(r);    }      // update dirty to show that we have already painted that region of the      //   screen so do not do it again.//      int height = (int)(tArea.getHeight() - dirty.height);//      if (height > 0)//      dirty.setBounds(dirty.x,dirty.height,dirty.width,(int)(tArea.getHeight() - dirty.height));      //LDC - 12/02/2003 - set drawing to false      drawing = false;   }