/[classpath]/classpath/java/awt/Window.java
ViewVC logotype

Diff of /classpath/java/awt/Window.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by fitzsim, Wed May 18 15:03:53 2005 UTC revision 1.49 by fitzsim, Thu May 19 00:42:52 2005 UTC
# Line 878  public class Window extends Container im Line 878  public class Window extends Container im
878        throw new IllegalStateException("Window.createBufferStrategy: window is"        throw new IllegalStateException("Window.createBufferStrategy: window is"
879                                        + " not displayable");                                        + " not displayable");
880    
881        BufferStrategy newStrategy = null;
882    
883      // try a flipping strategy      // try a flipping strategy
884      try      try
885        {        {
886          bufferStrategy = new WindowFlipBufferStrategy(numBuffers);          newStrategy = new WindowFlipBufferStrategy(numBuffers);
         return;  
887        }        }
888      catch (AWTException e)      catch (AWTException e)
889        {        {
890        }        }
891    
892      // try an accelerated blitting strategy      // fall back to an accelerated blitting strategy
893      try      if (newStrategy == null)
894        {        newStrategy = new WindowBltBufferStrategy(numBuffers, true);
         bufferStrategy = new WindowBltBufferStrategy(numBuffers, true);  
       }  
     catch (AWTException e)  
       {  
       }  
895    
896      // fall back to an unaccelerated blitting strategy      bufferStrategy = newStrategy;
     try  
       {  
         bufferStrategy = new WindowBltBufferStrategy(numBuffers, false);  
       }  
     catch (AWTException e)  
       {  
       }  
897    }    }
898    
899    /**    /**

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26