equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2005-2008 Sun Microsystems Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Sun designates this |
7 * published by the Free Software Foundation. Sun designates this |
261 (bufferStrategy = info.getBufferStrategy(false)) != null) { |
261 (bufferStrategy = info.getBufferStrategy(false)) != null) { |
262 SubRegionShowable bsSubRegion = |
262 SubRegionShowable bsSubRegion = |
263 (SubRegionShowable)bufferStrategy; |
263 (SubRegionShowable)bufferStrategy; |
264 boolean paintAllOnExpose = info.getPaintAllOnExpose(); |
264 boolean paintAllOnExpose = info.getPaintAllOnExpose(); |
265 info.setPaintAllOnExpose(false); |
265 info.setPaintAllOnExpose(false); |
266 if (bsSubRegion.validateAndShow(x, y, (x + w), (y + h))) { |
266 if (bsSubRegion.showIfNotLost(x, y, (x + w), (y + h))) { |
267 return !paintAllOnExpose; |
267 return !paintAllOnExpose; |
268 } |
268 } |
269 // Mark the buffer as needing to be repainted. We don't |
269 // Mark the buffer as needing to be repainted. We don't |
270 // immediately do a repaint as this method will return false |
270 // immediately do a repaint as this method will return false |
271 // indicating a PaintEvent should be generated which will |
271 // indicating a PaintEvent should be generated which will |