@@ -63,10 +63,7 @@ all: $(TARGET) | |||||
%.cpp.o: %.cpp | %.cpp.o: %.cpp | ||||
$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ | $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ | ||||
%.m.o: %.m | |||||
$(CC) $< $(BUILD_C_FLAGS) -ObjC -c -o $@ | |||||
%.mm.o: %.mm | |||||
%.mm.o: %.cpp | |||||
$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ | $(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@ | ||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
@@ -629,7 +629,7 @@ void Circle<T>::_draw(const bool isOutline) | |||||
glBegin(isOutline ? GL_LINE_LOOP : GL_POLYGON); | glBegin(isOutline ? GL_LINE_LOOP : GL_POLYGON); | ||||
for (int i=0; i<fNumSegments; ++i) | |||||
for (uint i=0; i<fNumSegments; ++i) | |||||
{ | { | ||||
glVertex2f(x + fPos.fX, y + fPos.fY); | glVertex2f(x + fPos.fX, y + fPos.fY); | ||||
@@ -887,6 +887,8 @@ Window::Window(App& app, intptr_t parentId) | |||||
: pData(new PrivateData(app, this)) | : pData(new PrivateData(app, this)) | ||||
{ | { | ||||
show(); | show(); | ||||
// unused | |||||
return; (void)parentId; | |||||
} | } | ||||
#endif | #endif | ||||
@@ -1,17 +0,0 @@ | |||||
/* | |||||
* DISTRHO Plugin Framework (DPF) | |||||
* Copyright (C) 2012-2014 Filipe Coelho <falktx@falktx.com> | |||||
* | |||||
* Permission to use, copy, modify, and/or distribute this software for any purpose with | |||||
* or without fee is hereby granted, provided that the above copyright notice and this | |||||
* permission notice appear in all copies. | |||||
* | |||||
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD | |||||
* TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN | |||||
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL | |||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |||||
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN | |||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |||||
*/ | |||||
#include "Window.cpp" |
@@ -127,6 +127,9 @@ public: | |||||
{ | { | ||||
fNeededUiSends = nullptr; | fNeededUiSends = nullptr; | ||||
} | } | ||||
#else | |||||
// unused | |||||
(void)fWorker; | |||||
#endif | #endif | ||||
#if DISTRHO_PLUGIN_WANT_TIMEPOS | #if DISTRHO_PLUGIN_WANT_TIMEPOS | ||||
@@ -569,25 +569,27 @@ public: | |||||
break; | break; | ||||
case effCanDo: | case effCanDo: | ||||
#if DISTRHO_PLUGIN_HAS_MIDI_INPUT || DISTRHO_PLUGIN_HAS_MIDI_OUTPUT || DISTRHO_PLUGIN_WANT_TIMEPOS | |||||
if (const char* const canDo = (const char*)ptr) | if (const char* const canDo = (const char*)ptr) | ||||
{ | { | ||||
#if DISTRHO_PLUGIN_HAS_MIDI_INPUT | |||||
# if DISTRHO_PLUGIN_HAS_MIDI_INPUT | |||||
if (std::strcmp(canDo, "receiveVstEvents") == 0) | if (std::strcmp(canDo, "receiveVstEvents") == 0) | ||||
return 1; | return 1; | ||||
if (std::strcmp(canDo, "receiveVstMidiEvent") == 0) | if (std::strcmp(canDo, "receiveVstMidiEvent") == 0) | ||||
return 1; | return 1; | ||||
#endif | |||||
#if DISTRHO_PLUGIN_HAS_MIDI_OUTPUT | |||||
# endif | |||||
# if DISTRHO_PLUGIN_HAS_MIDI_OUTPUT | |||||
if (std::strcmp(canDo, "sendVstEvents") == 0) | if (std::strcmp(canDo, "sendVstEvents") == 0) | ||||
return 1; | return 1; | ||||
if (std::strcmp(canDo, "sendVstMidiEvent") == 0) | if (std::strcmp(canDo, "sendVstMidiEvent") == 0) | ||||
return 1; | return 1; | ||||
#endif | |||||
#if DISTRHO_PLUGIN_WANT_TIMEPOS | |||||
# endif | |||||
# if DISTRHO_PLUGIN_WANT_TIMEPOS | |||||
if (std::strcmp(canDo, "receiveVstTimeInfo") == 0) | if (std::strcmp(canDo, "receiveVstTimeInfo") == 0) | ||||
return 1; | return 1; | ||||
#endif | |||||
# endif | |||||
} | } | ||||
#endif | |||||
break; | break; | ||||
//case effStartProcess: | //case effStartProcess: | ||||