Update rate limit does work on macOS after all

This commit is contained in:
falkTX 2022-02-28 21:51:18 +00:00
parent c5954db307
commit 341642d8e0
2 changed files with 0 additions and 4 deletions

View file

@ -382,13 +382,11 @@ public:
filebrowserhandle = nullptr;
}
#ifndef DISTRHO_OS_MAC
if (windowParameters.rateLimit != 0 && ++rateLimitStep % (windowParameters.rateLimit * 2))
return;
rateLimitStep = 0;
repaint();
#endif
}
void WindowParametersChanged(const WindowParameterList param, float value) override

View file

@ -479,7 +479,6 @@ struct ViewButton : MenuButton {
menu->addChild(createBoolPtrMenuItem("Lock module positions", "", &settings::lockModules));
#ifndef DISTRHO_OS_MAC
menu->addChild(new ui::MenuSeparator);
static const std::vector<std::string> rateLimitLabels = {
@ -496,7 +495,6 @@ struct ViewButton : MenuButton {
));
}
}));
#endif
}
};