diff options
author | Sven Göthel <[email protected]> | 2024-01-07 22:48:08 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-01-07 22:48:08 +0100 |
commit | e6bbc1a93ff4925d2aae33de527353826f81bcf1 (patch) | |
tree | f0cd18a3128ee8dab97ef4d47393229a149e95b5 /src/graphui/classes/com | |
parent | 6dbd73108ec0b2f829674c07771c232395034157 (diff) |
GraphUI Rectangle: Remove dropping AA_RENDERING_MASK, i.e. allow VBAA_RENDERING_BIT again
Dropping AA was added in commit eb99bfc27f9f49387cbb08471debcd4d61e4f745,
but non-planar rectangles need AA to avoid stairs.
Hence manually dropping some AA in MediaPlayer for blending rectangles.
RangeSlider already drops AA for its bars etc.
Diffstat (limited to 'src/graphui/classes/com')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java | 2 | ||||
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java index 593ba034d..fd564c800 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/Rectangle.java @@ -62,7 +62,7 @@ public class Rectangle extends GraphShape { * @param zPos */ public Rectangle(final int renderModes, final float minX, final float minY, final float width, final float height, final float lineWidth, final float zPos) { - super( renderModes & ~Region.AA_RENDERING_MASK ); + super( renderModes ); this.minX = minX; this.minY = minY; this.zPos = zPos; diff --git a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java index 57a9b3909..ee594144a 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java +++ b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java @@ -211,7 +211,7 @@ public class MediaPlayer extends Widget { this.addShape( infoGroup.setVisible(false) ); { final float sz = 1/7f; - final Rectangle rect = new Rectangle(renderModes, aratio, sz, 0); + final Rectangle rect = new Rectangle(renderModes & ~Region.AA_RENDERING_MASK, aratio, sz, 0); rect.setName("mp.info.blend").setInteractive(false); rect.setColor(0, 0, 0, alphaBlend); rect.setPaddding(new Padding(0, 0, 1f-sz, 0)); @@ -286,7 +286,7 @@ public class MediaPlayer extends Widget { }); this.addShape( ctrlSlider.setVisible(false) ); - ctrlBlend = new Rectangle(renderModes, aratio, ctrlCellHeight, 0); + ctrlBlend = new Rectangle(renderModes & ~Region.AA_RENDERING_MASK, aratio, ctrlCellHeight, 0); ctrlBlend.setName("ctrl.blend").setInteractive(false); ctrlBlend.setColor(0, 0, 0, alphaBlend); this.addShape( ctrlBlend.setVisible(false) ); |