From 5770c2465e171dd191fbc09003476f5ad4c33e53 Mon Sep 17 00:00:00 2001 From: Sven Göthel Date: Sun, 4 Feb 2024 07:40:06 +0100 Subject: GraphUI: Fix func-name, rename TexSeqButton.use{AspectRation->ARatio}Letterbox() matching TextureSequence --- src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java | 4 ++-- src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java b/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java index 89ec7ffea..0ff7353a0 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java +++ b/src/graphui/classes/com/jogamp/graph/ui/shapes/TexSeqButton.java @@ -79,7 +79,7 @@ public abstract class TexSeqButton extends BaseButton { * @return this instance for chaining */ public TexSeqButton setARatioLetterbox(final boolean v, final Vec4f backColor) { - if( useAspectRatioLetterbox() != v ) { + if( useARatioLetterbox() != v ) { texSeq.setARatioLetterbox(v, backColor); markShapeDirty(); } @@ -88,7 +88,7 @@ public abstract class TexSeqButton extends BaseButton { /** * See {@link TextureSequence#useARatioLetterbox()}. */ - public boolean useAspectRatioLetterbox() { return texSeq.useARatioLetterbox(); } + public boolean useARatioLetterbox() { return texSeq.useARatioLetterbox(); } /** See {@link TextureSequence#getARatioLetterboxBackColor()}. */ public Vec4f getARatioLetterboxBackColor() { return texSeq.getARatioLetterboxBackColor(); } 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 f434bd0ad..fd4cd726f 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java +++ b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java @@ -97,7 +97,7 @@ public class MediaPlayer extends Widget { * @param mPlayer fresh {@link GLMediaPlayer} instance, maybe customized via e.g. {@link GLMediaPlayer#setTextureMinMagFilter(int[])}. * @param medium {@link Uri} stream source, either a file or network source * @param aratio aspect ratio of the resulting {@link Shape}, usually 16.0f/9.0f or 4.0f/3.0f, which also denotes the width of this shape while using height 1.0. - * @param letterBox toggles {@link Region#COLORTEXTURE_LETTERBOX_RENDERING_BIT} on or off + * @param letterBox toggles {@link GLMediaPlayer#setARatioLetterbox(boolean, Vec4f)} on or off * @param zoomSize zoom-size (0..1] for zoom-out control * @param customCtrls optional custom controls, maybe an empty list */ -- cgit v1.2.3