Skip to content
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

Bugfix/1460 #3201

Merged
merged 3 commits into from
Nov 23, 2020
Merged

Bugfix/1460 #3201

merged 3 commits into from
Nov 23, 2020

Conversation

Kingston1
Copy link
Contributor

No description provided.

@@ -126,6 +130,12 @@ class SurgeGUIEditor : public EditorType,

virtual Steinberg::tresult PLUGIN_API onSize(Steinberg::ViewRect* newSize) override;
virtual Steinberg::tresult PLUGIN_API checkSizeConstraint(Steinberg::ViewRect* newSize) override;
virtual Steinberg::tresult PLUGIN_API setContentScaleFactor(ScaleFactor factor) override
{
scaleFactor = factor;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be left for future refactoring to properly use this scaleFactor, if that's even possible. Now this is just used to resolve wrong GUI size from host on initial open vs. reopen. More info here: #1951

@baconpaul
Copy link
Collaborator

baconpaul commented Nov 23, 2020

@Kingston1 tested on cubase

Testing Checklist for @mkruselj and @baconpaul

  • macOS (bp)
    • Reaper
    • Bitwig 3.3
    • Live
    • Cubase (if I can get my NFR licenses running)
  • Linux (bp)
    • reaper
    • bitwig 3.3
    • juce plugin host
    • qtractor
    • Ardour 6.4 or thereafter
  • Windows (ed)
    • Reaper
    • Live
    • Studio One
    • Bitwig (although BP can do this if ED doesn’t have it)

@baconpaul
Copy link
Collaborator

OK mac shows the same behavior main vs your branch.
That said, there's a bug in main in bitwig which is #3202. But that doesn't stop us merging this.

@baconpaul
Copy link
Collaborator

baconpaul commented Nov 23, 2020

From my tests this seems to behave just like main on mac and linux hosts. (Although main has bugs!)

@mkruselj if you can confirm on windows daws I am happy for you to merge this!

@mkruselj
Copy link
Collaborator

mkruselj commented Nov 23, 2020

@baconpaul OK, did the test and there is no zoom dance in any of those hosts (plus some others that I have, like MuLab and Reason and FL20).

However, it still happens that the attempted overly large zoom level is stored in DAW state. This needs to be updated when constraining the zoom level so that it doesn't pop that "zoom level too large" error when opening the project (which currently happens in Studio One and Live, even if plugin window is not opened).

For now I will merge this, though. Thank you for the awesome fix, @Kingston1!

@mkruselj mkruselj merged commit 8369a6f into surge-synthesizer:main Nov 23, 2020
@Kingston1 Kingston1 deleted the bugfix/1460 branch November 23, 2020 11:35
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.

3 participants