Skip to content

Commit 7de9cc9

Browse files
committed
chore: fix merge conflicts
1 parent 62951be commit 7de9cc9

2 files changed

Lines changed: 0 additions & 78 deletions

File tree

src/dmt/app/AbstractPluginEditor.h

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ class AbstractPluginEditor
4646
// Now that layout is fully configured, attach the compositor
4747
addAndMakeVisible(compositor);
4848

49-
<<<<<<< HEAD
50-
if (OS_IS_WINDOWS) {
51-
setResizable(false, true);
52-
}
53-
54-
if (OS_IS_DARWIN) {
55-
=======
5649
#if OS_IS_DARWIN || OS_IS_LINUX
5750
// Determine if hardware acceleration should be used
5851
bool shouldUseOpenGL = dmt::Settings::useOpenGL;
@@ -70,48 +63,10 @@ class AbstractPluginEditor
7063
} else {
7164
DBG("[AbstractPluginEditor] Using macOS software renderer");
7265
}
73-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
7466
setResizable(false, true);
7567
}
7668

7769
if (OS_IS_LINUX) {
78-
<<<<<<< HEAD
79-
openGLContext.setComponentPaintingEnabled(true);
80-
openGLContext.setContinuousRepainting(false);
81-
openGLContext.attachTo(*getTopLevelComponent());
82-
std::thread([this]() {
83-
for (int i = 0; i < 200; ++i) {
84-
if (openGLContext.isAttached() &&
85-
openGLContext.getRawContext() != nullptr)
86-
break;
87-
std::this_thread::sleep_for(std::chrono::milliseconds(25));
88-
}
89-
90-
if (!openGLContext.isAttached() ||
91-
openGLContext.getRawContext() == nullptr)
92-
return;
93-
94-
openGLContext.executeOnGLThread(
95-
[](juce::OpenGLContext&) {
96-
if (juce::gl::glDebugMessageControl) {
97-
juce::gl::glDebugMessageControl(
98-
juce::gl::GL_DEBUG_SOURCE_API,
99-
juce::gl::GL_DEBUG_TYPE_OTHER,
100-
juce::gl::GL_DEBUG_SEVERITY_NOTIFICATION,
101-
0,
102-
nullptr,
103-
juce::gl::GL_FALSE);
104-
}
105-
106-
if (juce::gl::glDebugMessageCallback)
107-
juce::gl::glDebugMessageCallback(juceFilteredGLDebugCallback,
108-
nullptr);
109-
},
110-
true);
111-
}).detach();
112-
}
113-
114-
=======
11570
// Linux: Use OpenGL for hardware acceleration if enabled
11671
if (shouldUseOpenGL) {
11772
DBG("[AbstractPluginEditor] Using Linux OpenGL renderer");
@@ -126,7 +81,6 @@ class AbstractPluginEditor
12681

12782
#endif
12883

129-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
13084
setConstraints(baseWidth, baseHeight + headerHeight);
13185
setResizable(false, true);
13286

@@ -200,14 +154,11 @@ class AbstractPluginEditor
200154
}
201155

202156
//==============================================================================
203-
<<<<<<< HEAD
204-
=======
205157
// Handle peer creation for Windows Direct2D setup
206158

207159
void parentHierarchyChanged() override {}
208160

209161
//==============================================================================
210-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
211162
// JUCE overrides
212163

213164
void setConstraints(int width, int height)
@@ -243,11 +194,7 @@ class AbstractPluginEditor
243194
{
244195
stopTimer();
245196
attachCompositorAfterResize();
246-
<<<<<<< HEAD
247-
repaint(); // TODO: Redundanr call, maybe remove this?
248-
=======
249197
repaint(); // TODO: Redundant call, maybe remove this?
250-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
251198
}
252199

253200
// Detach compositor to improve resize performance
@@ -311,8 +258,6 @@ class AbstractPluginEditor
311258
}
312259

313260
//==============================================================================
314-
<<<<<<< HEAD
315-
=======
316261
// OpenGL initialization
317262

318263
void setupOpenGLContext()
@@ -356,7 +301,6 @@ class AbstractPluginEditor
356301
}
357302

358303
//==============================================================================
359-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
360304
// OpenGL debug overwrite
361305

362306
static void KHRONOS_APIENTRY

src/dmt/gui/display/AbstractDisplay.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -128,32 +128,11 @@ class AbstractDisplay
128128
// Precalculation
129129
const auto borderStrength = rawBorderStrength * size;
130130
const auto cornerSize = rawCornerSize * size;
131-
<<<<<<< HEAD
132-
=======
133131
const auto padding = rawPadding * size;
134-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
135132
const float outerCornerSize = cornerSize;
136133
const float innerCornerSize = std::clamp(
137134
outerCornerSize - (borderStrength * 0.5f), 0.0f, outerCornerSize);
138135

139-
<<<<<<< HEAD
140-
// Draw background if border is disabled
141-
if (!drawBorder) {
142-
_g.setColour(backgroundColour);
143-
_g.fillRoundedRectangle(outerBounds.toFloat(), outerCornerSize);
144-
}
145-
146-
// Draw background and border if border is enabled
147-
if (drawBorder) {
148-
_g.setColour(borderColour);
149-
_g.fillRoundedRectangle(outerBounds.toFloat(), outerCornerSize);
150-
_g.setColour(backgroundColour);
151-
_g.fillRoundedRectangle(innerBounds.toFloat(), innerCornerSize);
152-
}
153-
// Draw display
154-
paintDisplay(_g, innerBounds);
155-
156-
=======
157136
// Draw background
158137
_g.setColour(backgroundColour);
159138
_g.fillRoundedRectangle(innerBounds.toFloat(), innerCornerSize);
@@ -165,7 +144,6 @@ class AbstractDisplay
165144
_g.setColour(displayForegroundColour);
166145
_g.drawRect(getLocalBounds().toFloat(), padding);
167146

168-
>>>>>>> a5e5c670fddd956080480f24e1397fa5872f9993
169147
// We need to draw the border again because drawing it once didn't cut it
170148
if (drawBorder) {
171149
_g.setColour(borderColour);

0 commit comments

Comments
 (0)