VST 3.7.4 Released | Page 2 | VST3 and ASPiK | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

No permission to create posts
sp_Feed Topic RSS sp_TopicIcon
VST 3.7.4 Released
Avatar
Member
Members
February 21, 2022 - 8:15 pm
Member Since: June 1, 2021
Forum Posts: 37
sp_UserOfflineSmall Offline

jim said
Hey Jean,

That gui scaling bug is still proving problematic to trace but I may have a fix.

At plugingui.h around line 535 try adding;

bool scaleFlag = true; 

and at plugingui.cpp around line 474 after the switch cases in scaleGUISize add;

if (scaleFlag) {
     scalePercent = 100.;
     scaleFlag = false;
}

This will simply override whatever value the DAW has set for the GUI size at initialization and only activates on the first call.

Another issue is that the enums in the comma-separated PluginParameter list in plugincore.cpp do not match the cases of the switch in plugingui.cpp. This seems to cause the GUI to reset back again after init to the tiny state upon closing/reopening the GUI at least in VST/SAVIHost. Strangely this does not present that same issue when the parameter has been set in plugincore.cpp via the vector string method.

The fix is just to match those entries ie. normal -> normalGUI or vice-versa or alternatively set that parameter via the vector list method such as;

std::vector scaleList;

scaleList.push_back(std::string("small"));
etc...

PluginParameter* piParamBonus = new PluginParameter(SCALE_GUI_SIZE, "Scale GUI", sizeList, std::string("normal"));

Hope that's a help to you.

Cheers  

Hi James,

I just saw your post and sorry for my late answer... I'm not sure what happened to the FORUM but I'm seeing strange codes which I never seen them before 🙂 as like:

if (scaleFlag) {
     scalePercent = 100.;
     scaleFlag = false;
}

I've fixed my GUI_Size issue by not using 10% size 🙂 it's not so bad fix but I'll try out yours asap.

Cheers,

Jean

No permission to create posts
Forum Timezone: America/New_York

Most Users Ever Online: 152

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Chaes: 56

Skyler: 48

StevieD: 46

Derek: 46

Frodson: 45

Peter: 43

TheSmile: 43

Nickolai: 43

clau_ste: 39

jeanlecode: 37

Member Stats:

Guest Posters: 2

Members: 786

Moderators: 1

Admins: 6

Forum Stats:

Groups: 13

Forums: 42

Topics: 853

Posts: 3385

Moderators: W Pirkle: 698