< prev index next >
src/java.desktop/share/classes/sun/java2d/opengl/OGLSurfaceData.java
Print this page
@@ -540,25 +540,21 @@
}
}
return super.getMaskFill(sg2d);
}
- public boolean copyArea(SunGraphics2D sg2d,
- int x, int y, int w, int h, int dx, int dy)
- {
- if (sg2d.transformState < SunGraphics2D.TRANSFORM_TRANSLATESCALE &&
- sg2d.compositeState < SunGraphics2D.COMP_XOR)
- {
- x += sg2d.transX;
- y += sg2d.transY;
-
+ @Override
+ public boolean copyArea(SunGraphics2D sg2d, int x, int y, int w, int h,
+ int dx, int dy) {
+ final int state = sg2d.transformState;
+ if (state > SunGraphics2D.TRANSFORM_TRANSLATESCALE
+ || sg2d.compositeState >= SunGraphics2D.COMP_XOR) {
+ return false;
+ }
oglRenderPipe.copyArea(sg2d, x, y, w, h, dx, dy);
-
return true;
}
- return false;
- }
public void flush() {
invalidate();
OGLRenderQueue rq = OGLRenderQueue.getInstance();
rq.lock();
< prev index next >