kopia lustrzana https://github.com/jameshball/osci-render
Remove corner resize icon and increase max Lua instructions per sample
rodzic
6ada7214e7
commit
5a9efeba1e
|
@ -310,6 +310,10 @@ void OscirenderLookAndFeel::drawTooltip(juce::Graphics& g, const juce::String& t
|
||||||
.draw (g, { static_cast<float> (width), static_cast<float> (height) });
|
.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 OscirenderLookAndFeel::getDefaultColourScheme() {
|
||||||
juce::CodeEditorComponent::ColourScheme cs;
|
juce::CodeEditorComponent::ColourScheme cs;
|
||||||
|
|
||||||
|
|
|
@ -93,4 +93,5 @@ public:
|
||||||
void drawMenuBarBackground(juce::Graphics& g, int width, int height, bool, juce::MenuBarComponent& menuBar) override;
|
void drawMenuBarBackground(juce::Graphics& g, int width, int height, bool, juce::MenuBarComponent& menuBar) override;
|
||||||
juce::CodeEditorComponent::ColourScheme getDefaultColourScheme();
|
juce::CodeEditorComponent::ColourScheme getDefaultColourScheme();
|
||||||
void drawTooltip(juce::Graphics& g, const juce::String& text, int width, int height) override;
|
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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -179,7 +179,7 @@ std::vector<float> LuaParser::run(lua_State*& L, LuaVariables& vars) {
|
||||||
// Get the function from the registry
|
// Get the function from the registry
|
||||||
lua_geti(L, LUA_REGISTRYINDEX, functionRef);
|
lua_geti(L, LUA_REGISTRYINDEX, functionRef);
|
||||||
|
|
||||||
setMaximumInstructions(L, 1000000);
|
setMaximumInstructions(L, 5000000);
|
||||||
|
|
||||||
if (lua_isfunction(L, -1)) {
|
if (lua_isfunction(L, -1)) {
|
||||||
const int ret = lua_pcall(L, 0, LUA_MULTRET, 0);
|
const int ret = lua_pcall(L, 0, LUA_MULTRET, 0);
|
||||||
|
|
Ładowanie…
Reference in New Issue