From 3114b71e6a3163e9a4cea0326729aff4d801dd22 Mon Sep 17 00:00:00 2001 From: Bill Farmer Date: Fri, 21 Apr 2023 16:56:35 +0100 Subject: [PATCH] Update README, help --- README.md | 2 +- src/main/java/org/billthefarmer/scope/Scope.java | 5 ++--- src/main/java/org/billthefarmer/scope/Spectrum.java | 4 ++-- src/main/res/raw/help.html | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index bde1f41..0341465 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ and documentation. * **Start** - Moves the trace to the start * **End** - Moves the trace to the end * **Spectrum** - Spectrum display - * **Settings** - **Input source** and **About** items + * **Settings** - Settings display The last two or six items may be on the menu, depending on the size of the device. diff --git a/src/main/java/org/billthefarmer/scope/Scope.java b/src/main/java/org/billthefarmer/scope/Scope.java index 6c48181..2d2f702 100644 --- a/src/main/java/org/billthefarmer/scope/Scope.java +++ b/src/main/java/org/billthefarmer/scope/Scope.java @@ -145,9 +145,8 @@ protected void onDraw(Canvas canvas) xstop = (int) audio.length; // Calculate y scale - - if (max < 1024) - max = 1024; + if (max < 2048) + max = 2048; yscale = (float) (max / (height / 2.0)); diff --git a/src/main/java/org/billthefarmer/scope/Spectrum.java b/src/main/java/org/billthefarmer/scope/Spectrum.java index 6d8de8a..ed31f57 100644 --- a/src/main/java/org/billthefarmer/scope/Spectrum.java +++ b/src/main/java/org/billthefarmer/scope/Spectrum.java @@ -131,8 +131,8 @@ protected void onDraw(Canvas canvas) canvas.drawBitmap(graticule, 0, 0, null); // Check max value - if (max < 0.5f) - max = 0.5f; + if (max < 1.0f) + max = 1.0f; // Calculate the scaling float yscale = (height / max); diff --git a/src/main/res/raw/help.html b/src/main/res/raw/help.html index 822cbb5..4e26a46 100644 --- a/src/main/res/raw/help.html +++ b/src/main/res/raw/help.html @@ -23,7 +23,7 @@

Using

  •  Start - Moves the trace to the start
  •  End - Moves the trace to the end
  •  Spectrum - Spectrum display
-  •  Settings - Input source, Screen and About items
+  •  Settings - Settings display

The last two or six items may be on the menu, depending on the size of the device.