jdk/src/java.desktop/windows/classes/sun/java2d/d3d/D3DGraphicsDevice.java
changeset 28234 f694f2576719
parent 25859 3317bb8137f4
child 30469 bac0a7ff7e1e
equal deleted inserted replaced
28233:9dc3764ed475 28234:f694f2576719
   174     private boolean fsWindowWasAlwaysOnTop;
   174     private boolean fsWindowWasAlwaysOnTop;
   175     private static native boolean enterFullScreenExclusiveNative(int screen,
   175     private static native boolean enterFullScreenExclusiveNative(int screen,
   176                                                                  long hwnd);
   176                                                                  long hwnd);
   177 
   177 
   178     @Override
   178     @Override
       
   179     @SuppressWarnings("deprecation")
   179     protected void enterFullScreenExclusive(final int screen, WindowPeer wp)
   180     protected void enterFullScreenExclusive(final int screen, WindowPeer wp)
   180     {
   181     {
   181         final WWindowPeer wpeer = (WWindowPeer)realFSWindow.getPeer();
   182         final WWindowPeer wpeer = (WWindowPeer)realFSWindow.getPeer();
   182 
   183 
   183         D3DRenderQueue rq = D3DRenderQueue.getInstance();
   184         D3DRenderQueue rq = D3DRenderQueue.getInstance();
   244             D3DRenderQueue.getInstance().restoreDevices();
   245             D3DRenderQueue.getInstance().restoreDevices();
   245         }
   246         }
   246     }
   247     }
   247 
   248 
   248     @Override
   249     @Override
       
   250     @SuppressWarnings("deprecation")
   249     protected void addFSWindowListener(Window w) {
   251     protected void addFSWindowListener(Window w) {
   250         // if the window is not a toplevel (has an owner) we have to use the
   252         // if the window is not a toplevel (has an owner) we have to use the
   251         // real toplevel to enter the full-screen mode with (4933099).
   253         // real toplevel to enter the full-screen mode with (4933099).
   252         if (!(w instanceof Frame) && !(w instanceof Dialog) &&
   254         if (!(w instanceof Frame) && !(w instanceof Dialog) &&
   253             (realFSWindow = getToplevelOwner(w)) != null)
   255             (realFSWindow = getToplevelOwner(w)) != null)
   271         fsWindowListener = new D3DFSWindowAdapter();
   273         fsWindowListener = new D3DFSWindowAdapter();
   272         realFSWindow.addWindowListener(fsWindowListener);
   274         realFSWindow.addWindowListener(fsWindowListener);
   273     }
   275     }
   274 
   276 
   275     @Override
   277     @Override
       
   278     @SuppressWarnings("deprecation")
   276     protected void removeFSWindowListener(Window w) {
   279     protected void removeFSWindowListener(Window w) {
   277         realFSWindow.removeWindowListener(fsWindowListener);
   280         realFSWindow.removeWindowListener(fsWindowListener);
   278         fsWindowListener = null;
   281         fsWindowListener = null;
   279 
   282 
   280         /**
   283         /**
   335     private static native void configDisplayModeNative(int screen, long hwnd,
   338     private static native void configDisplayModeNative(int screen, long hwnd,
   336                                                        int width, int height,
   339                                                        int width, int height,
   337                                                        int bitDepth,
   340                                                        int bitDepth,
   338                                                        int refreshRate);
   341                                                        int refreshRate);
   339     @Override
   342     @Override
       
   343     @SuppressWarnings("deprecation")
   340     protected void configDisplayMode(final int screen, final WindowPeer w,
   344     protected void configDisplayMode(final int screen, final WindowPeer w,
   341                                      final int width, final int height,
   345                                      final int width, final int height,
   342                                      final int bitDepth, final int refreshRate)
   346                                      final int bitDepth, final int refreshRate)
   343     {
   347     {
   344         // we entered fs mode via gdi
   348         // we entered fs mode via gdi