< prev index next >
modules/javafx.graphics/src/main/java/com/sun/prism/sw/SWGraphics.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -442,10 +442,11 @@
this.pr.drawImage(RendererBase.TYPE_INT_ARGB_PRE, imageMode,
tex.getDataNoClone(), tex.getContentWidth(), tex.getContentHeight(),
tex.getOffset(), tex.getPhysicalWidth(),
piscesTx,
tex.getWrapMode() == Texture.WrapMode.REPEAT,
+ tex.getLinearFiltering(),
(int)(Math.min(p1.x, p2.x) * SWUtils.TO_PISCES), (int)(Math.min(p1.y, p2.y) * SWUtils.TO_PISCES),
(int)(Math.abs(p2.x - p1.x) * SWUtils.TO_PISCES), (int)(Math.abs(p2.y - p1.y) * SWUtils.TO_PISCES),
RendererBase.IMAGE_FRAC_EDGE_KEEP, RendererBase.IMAGE_FRAC_EDGE_KEEP,
RendererBase.IMAGE_FRAC_EDGE_KEEP, RendererBase.IMAGE_FRAC_EDGE_KEEP,
0, 0, tex.getContentWidth()-1, tex.getContentHeight()-1,
@@ -737,10 +738,11 @@
this.pr.drawImage(RendererBase.TYPE_INT_ARGB_PRE, imageMode,
data, tex.getContentWidth(), tex.getContentHeight(),
swTex.getOffset(), tex.getPhysicalWidth(),
piscesTx,
tex.getWrapMode() == Texture.WrapMode.REPEAT,
+ tex.getLinearFiltering(),
(int)(SWUtils.TO_PISCES * dstBBox.getMinX()), (int)(SWUtils.TO_PISCES * dstBBox.getMinY()),
(int)(SWUtils.TO_PISCES * dstBBox.getWidth()), (int)(SWUtils.TO_PISCES * dstBBox.getHeight()),
lEdge, rEdge, tEdge, bEdge,
txMin, tyMin, txMax, tyMax,
swTex.hasAlpha());
< prev index next >