< prev index next >
src/java.desktop/share/classes/sun/java2d/SunGraphics2D.java
Print this page
*** 2757,2768 ****
null);
drawImage(bufImg, transXform, null);
}
/**
! * Intersects <code>destRect</code> with <code>clip</code> and
! * overwrites <code>destRect</code> with the result.
* Returns false if the intersection was empty, true otherwise.
*/
private boolean clipTo(Rectangle destRect, Rectangle clip) {
int x1 = Math.max(destRect.x, clip.x);
int x2 = Math.min(destRect.x + destRect.width, clip.x + clip.width);
--- 2757,2768 ----
null);
drawImage(bufImg, transXform, null);
}
/**
! * Intersects {@code destRect} with {@code clip} and
! * overwrites {@code destRect} with the result.
* Returns false if the intersection was empty, true otherwise.
*/
private boolean clipTo(Rectangle destRect, Rectangle clip) {
int x1 = Math.max(destRect.x, clip.x);
int x2 = Math.min(destRect.x + destRect.width, clip.x + clip.width);
< prev index next >