modules/graphics/src/main/java/com/sun/prism/impl/BaseGraphics.java
Print this page
*** 79,89 ****
protected float transY;
private final BaseContext context;
private final RenderTarget renderTarget;
private boolean state3D = false;
! private float pixelScale = 1.0f;
protected BaseGraphics(BaseContext context, RenderTarget target) {
this.context = context;
this.renderTarget = target;
devClipRect = new RectBounds(0, 0,
--- 79,90 ----
protected float transY;
private final BaseContext context;
private final RenderTarget renderTarget;
private boolean state3D = false;
! private float pixelScaleX = 1.0f;
! private float pixelScaleY = 1.0f;
protected BaseGraphics(BaseContext context, RenderTarget target) {
this.context = context;
this.renderTarget = target;
devClipRect = new RectBounds(0, 0,
*** 272,288 ****
public boolean isAntialiasedShape() {
return antialiasedShape;
}
@Override
! public void setPixelScaleFactor(float pixelScale) {
! this.pixelScale = pixelScale;
}
@Override
! public float getPixelScaleFactor() {
! return pixelScale;
}
public void setCamera(NGCamera camera) {
this.camera = camera;
}
--- 273,295 ----
public boolean isAntialiasedShape() {
return antialiasedShape;
}
@Override
! public void setPixelScaleFactors(float pixelScaleX, float pixelScaleY) {
! this.pixelScaleX = pixelScaleX;
! this.pixelScaleY = pixelScaleY;
}
@Override
! public float getPixelScaleFactorX() {
! return pixelScaleX;
! }
!
! @Override
! public float getPixelScaleFactorY() {
! return pixelScaleY;
}
public void setCamera(NGCamera camera) {
this.camera = camera;
}