Skip to content

Fix cursor frequency label missing in GPU mode#730

Merged
ten9876 merged 1 commit into
aethersdr:mainfrom
boydsoftprez:fix/cursor-frequency
Apr 5, 2026
Merged

Fix cursor frequency label missing in GPU mode#730
ten9876 merged 1 commit into
aethersdr:mainfrom
boydsoftprez:fix/cursor-frequency

Conversation

@boydsoftprez

@boydsoftprez boydsoftprez commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #726

The cursor frequency overlay was only drawn in the QPainter paintEvent path. In GPU rendering mode (AETHER_GPU_SPECTRUM), paintEvent returns early and delegates to render()renderGpuFrame(), so the cursor frequency label never appeared.

Added the cursor frequency drawing to the GPU overlay QPainter section in renderGpuFrame(), where it renders into the cached overlay texture alongside the grid, scales, and markers. The overlay is already marked dirty on mouse move when cursor freq is enabled (line 1238), so the label updates as the cursor moves.

Test plan

  • Enable "Cursor Freq" in Display settings
  • Move mouse over spectrum — frequency label should appear next to cursor
  • Label should flip sides near edges (right edge → label on left, top edge → label below)
  • Disable "Cursor Freq" — label disappears
  • CPU not affected (overlay already repaints on mouse move when enabled)

JJ Boyd ~KG4VCF
🤖 Generated with Claude Code

The cursor frequency overlay was only drawn in the QPainter paintEvent
path. In GPU mode, paintEvent returns early (delegating to render()),
so the cursor label never appeared. Add the cursor frequency drawing
to the GPU overlay QPainter section in renderGpuFrame() so it renders
into the cached overlay texture alongside grid, scales, and markers.

Fixes aethersdr#726

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ten9876 ten9876 enabled auto-merge (squash) April 5, 2026 07:13
@ten9876 ten9876 merged commit e2cfe72 into aethersdr:main Apr 5, 2026
3 checks passed
@boydsoftprez boydsoftprez deleted the fix/cursor-frequency branch April 5, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor frequency no longer works on 0.8.1

2 participants