Exemple #1
0
  public void setSize(Dimension d) {

    super.setSize(d);

    if (offg != null) {
      offscreen = createImage(getWidth(), getHeight());
      offg = offscreen.getGraphics();
    }
    /*
    if(IGView.view!=null){
        IGView.view.setScreenSize(w,h);
        IGView.view.update();
    }
    IGCore.setDisplaySize(d);
    */
  }
Exemple #2
0
 public void initScreen() {
   offscreen = createImage(getWidth(), getHeight());
   if (offscreen != null) {
     offg = offscreen.getGraphics();
   }
 }