kopia lustrzana https://github.com/jameshball/osci-render
Switch to Direct2D renderer on Windows
rodzic
631df86a09
commit
ea406551f8
|
@ -5,8 +5,8 @@
|
||||||
OscirenderAudioProcessorEditor::OscirenderAudioProcessorEditor(OscirenderAudioProcessor& p)
|
OscirenderAudioProcessorEditor::OscirenderAudioProcessorEditor(OscirenderAudioProcessor& p)
|
||||||
: AudioProcessorEditor(&p), audioProcessor(p), collapseButton("Collapse", juce::Colours::white, juce::Colours::white, juce::Colours::white)
|
: AudioProcessorEditor(&p), audioProcessor(p), collapseButton("Collapse", juce::Colours::white, juce::Colours::white, juce::Colours::white)
|
||||||
{
|
{
|
||||||
#if !JUCE_MAC
|
#if JUCE_LINUX
|
||||||
// use OpenGL on Windows and Linux for much better performance. The default on Mac is CoreGraphics which is much faster.
|
// use OpenGL on Linux for much better performance. The default on Mac is CoreGraphics, and on Window is Direct2D which is much faster.
|
||||||
openGlContext.attachTo(*getTopLevelComponent());
|
openGlContext.attachTo(*getTopLevelComponent());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ public:
|
||||||
|
|
||||||
bool usingNativeMenuBar = false;
|
bool usingNativeMenuBar = false;
|
||||||
|
|
||||||
#if !JUCE_MAC
|
#if JUCE_LINUX
|
||||||
juce::OpenGLContext openGlContext;
|
juce::OpenGLContext openGlContext;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue