diff --git a/Source/LookAndFeel.cpp b/Source/LookAndFeel.cpp index 3f5a4fc..3e06f9f 100644 --- a/Source/LookAndFeel.cpp +++ b/Source/LookAndFeel.cpp @@ -310,6 +310,10 @@ void OscirenderLookAndFeel::drawTooltip(juce::Graphics& g, const juce::String& t .draw (g, { static_cast (width), static_cast (height) }); } +void OscirenderLookAndFeel::drawCornerResizer(juce::Graphics&, int w, int h, bool isMouseOver, bool isMouseDragging) { + +} + juce::CodeEditorComponent::ColourScheme OscirenderLookAndFeel::getDefaultColourScheme() { juce::CodeEditorComponent::ColourScheme cs; diff --git a/Source/LookAndFeel.h b/Source/LookAndFeel.h index bcac000..26192ba 100644 --- a/Source/LookAndFeel.h +++ b/Source/LookAndFeel.h @@ -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; }; diff --git a/Source/lua/LuaParser.cpp b/Source/lua/LuaParser.cpp index 4fecd0f..aa64cc8 100644 --- a/Source/lua/LuaParser.cpp +++ b/Source/lua/LuaParser.cpp @@ -5,11 +5,11 @@ std::function LuaParser::onPrint; std::function 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 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);