equal
deleted
inserted
replaced
3774 null); |
3774 null); |
3775 try { |
3775 try { |
3776 createBufferStrategy(numBuffers, bufferCaps); |
3776 createBufferStrategy(numBuffers, bufferCaps); |
3777 return; // Success |
3777 return; // Success |
3778 } catch (AWTException e) { |
3778 } catch (AWTException e) { |
3779 // Failed |
3779 // Code should never reach here (an unaccelerated blitting |
3780 } |
3780 // strategy should always work) |
3781 // Code should never reach here (an unaccelerated blitting |
3781 throw new InternalError("Could not create a buffer strategy", e); |
3782 // strategy should always work) |
3782 } |
3783 throw new InternalError("Could not create a buffer strategy"); |
|
3784 } |
3783 } |
3785 |
3784 |
3786 /** |
3785 /** |
3787 * Creates a new strategy for multi-buffering on this component with the |
3786 * Creates a new strategy for multi-buffering on this component with the |
3788 * required buffer capabilities. This is useful, for example, if only |
3787 * required buffer capabilities. This is useful, for example, if only |