Skip to content

Commit

Permalink
Update README, help
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Apr 21, 2023
1 parent ff64d53 commit 3114b71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/org/billthefarmer/scope/Scope.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/billthefarmer/scope/Spectrum.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/main/res/raw/help.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Using</h2>
&nbsp; &#8226;&nbsp; <b>Start</b> - Moves the trace to the start<br>
&nbsp; &#8226;&nbsp; <b>End</b> - Moves the trace to the end<br>
&nbsp; &#8226;&nbsp; <b>Spectrum</b> - Spectrum display<br>
&nbsp; &#8226;&nbsp; <b>Settings</b> - <b>Input source</b>, <b>Screen</b> and <b>About</b> items<br>
&nbsp; &#8226;&nbsp; <b>Settings</b> - Settings display<br>

<p>The last two or six items may be on the menu, depending on the size of
the device.</p>
Expand Down

0 comments on commit 3114b71

Please sign in to comment.