Skip to content

Conversation

@Madadog
Copy link
Contributor

@Madadog Madadog commented Jul 2, 2023

Vertically zooming the piano roll caused highlighted semitones to drift from the actual note positions. This 2-line fix ensures the marked semitones are aligned with the grid lines and notes at all available vertical zoom levels.

02-07-23-scale-fix

Although this works on my low-resolution linux device, I am unable to test if display scaling (e.g. for 4k screens), OS differences (or other factors I have not considered) play well with this patch.

This might conflict with other pull requests that affect the piano roll like #6700

Vertically zooming the piano roll caused highlighted semitones to drift from the actual note positions. This 2-line fix ensures the marked semitones are aligned with the grid lines and notes at all allowed vertical zoom levels.
@zonkmachine
Copy link
Contributor

Dead on target! Looks fine to me. There is something else going on there but it wasn't caused by this PR. When you scroll, there is an update missing somewhere. While you're scrolling the lines are still off but when you move the cursor over the note area the keyboard and highlight lines suddenly nudge into position.

@PhysSong PhysSong merged commit 086e864 into LMMS:master Jul 30, 2023
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.

4 participants