-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waveform: fix shifted pixmap markers with odd scale factors #3938
Conversation
7c4855a
to
3b5d696
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding those really helpful and important comments!
What is the difference between or the relation of scaleFactor() and getDevicePixelRatio()? Do we need to take both into account, i.e. multiply them? There is more code that uses WImageStore::getImage() with scaleFactor() and not getDevicePixelRatio().
As far a sI can tell
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just curious to see where scaleFactor() is used. It is not documented. Let's ignore this for now and simply only fix what is actually broken.
Thank you for your efforts! LGTM
sure. cleaning up the internal scaling should happen for 2.4, it makes the code more complex than necessary. |
Did you try to uncomment the GUI for the old scaleing? By luck it still works. On the other hand I have the impression we just need a few lines of code to allow to set the QT_SCREEN_SCALE_FACTORS from the GUI and require a restart afterwards.Than we can remove all internal scaling. We loose the benefit of on the fly scaling and scaling factors lower than 1. But I think we can effort it. What do you think? |
Imo that's the way to go now that almost all scalong issues are resolved. internal scaling was an intermediate solution but we must please not reactivate it. just to much trouble composted to Qt scaling. changing the scaling on the fly is not required IMO, that's mostly a one-time adjustment, isn't it? |
that said I have no intention to test the old scaling, and I dont see a use case for it as long as Qt scaling works. do you? |
May this be a regression from this PR: https://bugs.launchpad.net/mixxx/+bug/1930968 ? |
maybe. we don't know for sure if the song was broken before on macOS with custom Qt scaling, or if this is a regression on macOS 11.4 only |
to revert the fix for macOS I'll set the devicePixelRatio to 1 for macOS only |
hmm yeah I think we would have gotten reports about broken markers because some of the folks asking about unscaled Mixxx on Big Sur sure used odd factors with the Qt advice they got |
follow-up for #3936 to fix
https://bugs.launchpad.net/mixxx/+bug/1917253
Now the pixmap waveform markers in Deere are
For testing set an non-int scale factor like
export QT_SCREEN_SCALE_FACTORS=1.37