src/share/classes/sun/awt/image/VolatileSurfaceManager.java

Print this page

        

*** 333,346 **** --- 333,349 ---- // using a SurfaceData that was created in a different // display mode. sdBackup = null; sdCurrent = getBackupSurface(); // Now, invalidate the old hardware-based SurfaceData + // Note that getBackupSurface may set sdAccel to null!! + if (sdAccel != null) { SurfaceData oldData = sdAccel; sdAccel = null; oldData.invalidate(); } + } // Update graphicsConfig for the vImg in case it changed due to // this display change event vImg.updateGraphicsConfig(); }