public void displayChanged(){
  if (!isAccelerationEnabled()) {
    return;
  }
  lostSurface=true;
  if (sdAccel != null) {
    sdBackup=null;
    SurfaceData oldData=sdAccel;
    sdAccel=null;
    oldData.invalidate();
    sdCurrent=getBackupSurface();
  }
  vImg.updateGraphicsConfig();
}

public void displayChanged ( ) { if ( ! isAccelerationEnabled ( ) ) { return ; } lostSurface = true ; if ( sdAccel != null ) { sdBackup = null ; SurfaceData oldData = sdAccel ; sdAccel = null ; oldData . invalidate ( ) ; sdCurrent = getBackupSurface ( ) ; } vImg . updateGraphicsConfig ( ) ; }
called from sungraphicsenv when there has been a display mode change . note that we simply invalidate hardware surfaces here ; we do not attempt to recreate or re - render them . this is to avoid threading conflicts with the native toolkit and associated threads . instead , we just nullify the old surface data object and wait for a future method in the rendering process to recreate the surface .
