Browse Source

Fixed broken RTAS compilation on Visual Studio.

tags/2021-05-28
Timur Doumler 9 years ago
parent
commit
94eb1e61f4
2 changed files with 10 additions and 10 deletions
  1. +5
    -5
      modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp
  2. +5
    -5
      modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h

+ 5
- 5
modules/juce_audio_plugin_client/RTAS/juce_RTAS_Wrapper.cpp View File

@@ -123,8 +123,8 @@
//============================================================================== //==============================================================================
#if JUCE_WINDOWS #if JUCE_WINDOWS
extern void JUCE_CALLTYPE attachSubWindow (void* hostWindow, int& titleW, int& titleH, juce::Component* comp);
extern void JUCE_CALLTYPE resizeHostWindow (void* hostWindow, int& titleW, int& titleH, juce::Component* comp);
extern void JUCE_CALLTYPE attachSubWindow (void* hostWindow, int& titleW, int& titleH, Component* comp);
extern void JUCE_CALLTYPE resizeHostWindow (void* hostWindow, int& titleW, int& titleH, Component* comp);
#if ! JucePlugin_EditorRequiresKeyboardFocus #if ! JucePlugin_EditorRequiresKeyboardFocus
extern void JUCE_CALLTYPE passFocusToHostWindow (void* hostWindow); extern void JUCE_CALLTYPE passFocusToHostWindow (void* hostWindow);
#endif #endif
@@ -371,7 +371,7 @@ public:
} }
#if JUCE_WINDOWS #if JUCE_WINDOWS
void globalFocusChanged (juce::Component*) override
void globalFocusChanged (Component*) override
{ {
#if ! JucePlugin_EditorRequiresKeyboardFocus #if ! JucePlugin_EditorRequiresKeyboardFocus
if (hasKeyboardFocus (true)) if (hasKeyboardFocus (true))
@@ -662,9 +662,9 @@ public:
#if JUCE_WINDOWS #if JUCE_WINDOWS
Boolean HandleKeystroke (EventRecord* e) override Boolean HandleKeystroke (EventRecord* e) override
{ {
if (juce::Component* modalComp = juce::Component::getCurrentlyModalComponent())
if (Component* modalComp = Component::getCurrentlyModalComponent())
{ {
if (juce::Component* focused = modalComp->getCurrentlyFocusedComponent())
if (Component* focused = modalComp->getCurrentlyFocusedComponent())
{ {
switch (e->message & charCodeMask) switch (e->message & charCodeMask)
{ {


+ 5
- 5
modules/juce_audio_plugin_client/utility/juce_IncludeModuleHeaders.h View File

@@ -31,12 +31,12 @@ using namespace juce;
namespace juce namespace juce
{ {
#if JUCE_MAC
#define Point juce::Point
#define Component juce::Component
#define Component juce::Component
void repostCurrentNSEvent();
#endif
#if JUCE_MAC
#define Point juce::Point
void repostCurrentNSEvent();
#endif
//============================================================================== //==============================================================================
inline const PluginHostType& getHostType() inline const PluginHostType& getHostType()


Loading…
Cancel
Save