Remove corner resize icon and increase max Lua instructions per sample

pull/229/head
James Ball 2024-03-29 22:37:27 +00:00 zatwierdzone przez James H Ball
rodzic 6ada7214e7
commit 5a9efeba1e
3 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -310,6 +310,10 @@ void OscirenderLookAndFeel::drawTooltip(juce::Graphics& g, const juce::String& t
.draw (g, { static_cast<float> (width), static_cast<float> (height) });
}
void OscirenderLookAndFeel::drawCornerResizer(juce::Graphics&, int w, int h, bool isMouseOver, bool isMouseDragging) {
}
juce::CodeEditorComponent::ColourScheme OscirenderLookAndFeel::getDefaultColourScheme() {
juce::CodeEditorComponent::ColourScheme cs;

Wyświetl plik

@ -93,4 +93,5 @@ public:
void drawMenuBarBackground(juce::Graphics& g, int width, int height, bool, juce::MenuBarComponent& menuBar) override;
juce::CodeEditorComponent::ColourScheme getDefaultColourScheme();
void drawTooltip(juce::Graphics& g, const juce::String& text, int width, int height) override;
void drawCornerResizer(juce::Graphics&, int w, int h, bool isMouseOver, bool isMouseDragging) override;
};

Wyświetl plik

@ -5,11 +5,11 @@ std::function<void(const std::string&)> LuaParser::onPrint;
std::function<void()> LuaParser::onClear;
void LuaParser::maximumInstructionsReached(lua_State* L, lua_Debug* D) {
lua_getstack(L, 1, D);
lua_getstack(L, 1, D);
lua_getinfo(L, "l", D);
std::string msg = std::to_string(D->currentline) + ": Maximum instructions reached! You may have an infinite loop.";
lua_pushstring(L, msg.c_str());
lua_pushstring(L, msg.c_str());
lua_error(L);
}
@ -179,7 +179,7 @@ std::vector<float> LuaParser::run(lua_State*& L, LuaVariables& vars) {
// Get the function from the registry
lua_geti(L, LUA_REGISTRYINDEX, functionRef);
setMaximumInstructions(L, 1000000);
setMaximumInstructions(L, 5000000);
if (lua_isfunction(L, -1)) {
const int ret = lua_pcall(L, 0, LUA_MULTRET, 0);