Browse Source

Projucer: Fixed some errors when building the live-build engine dll

tags/2021-05-28
ed 5 years ago
parent
commit
aa200ffeac
3 changed files with 7 additions and 5 deletions
  1. +1
    -1
      extras/Projucer/Source/Utility/Helpers/jucer_MiscUtilities.cpp
  2. +1
    -1
      extras/Projucer/Source/Utility/Helpers/jucer_MiscUtilities.h
  3. +5
    -3
      extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp

+ 1
- 1
extras/Projucer/Source/Utility/Helpers/jucer_MiscUtilities.cpp View File

@@ -390,7 +390,7 @@ int getIndexOfCommentBlockStart (const StringArray& lines, int endIndex)
return -1;
}
int findBestLineToScrollToForClass (StringArray lines, StringRef className, bool isPlugin)
int findBestLineToScrollToForClass (StringArray lines, const String& className, bool isPlugin)
{
for (auto line : lines)
{


+ 1
- 1
extras/Projucer/Source/Utility/Helpers/jucer_MiscUtilities.h View File

@@ -55,7 +55,7 @@ StringArray getModulesRequiredForComponent() noexcept;
StringArray getModulesRequiredForAudioProcessor() noexcept;
bool isPIPFile (const File&) noexcept;
int findBestLineToScrollToForClass (StringArray, StringRef, bool isPlugin = false);
int findBestLineToScrollToForClass (StringArray, const String&, bool isPlugin = false);
bool isValidJUCEExamplesDirectory (const File&) noexcept;


+ 5
- 3
extras/Projucer/Source/Utility/UI/jucer_ProjucerLookAndFeel.cpp View File

@@ -18,8 +18,10 @@
#include "../../Application/jucer_Headers.h"
#include "jucer_ProjucerLookAndFeel.h"
#include "../../Application/jucer_Application.h"
#include "../../Project/UI/jucer_ProjectContentComponent.h"
#ifndef BUILDING_JUCE_COMPILEENGINE
#include "../../Project/UI/jucer_ProjectContentComponent.h"
#endif
//==============================================================================
ProjucerLookAndFeel::ProjucerLookAndFeel()
@@ -39,9 +41,9 @@ void ProjucerLookAndFeel::drawTabButton (TabBarButton& button, Graphics& g, bool
g.fillRect (area);
const auto alpha = button.isEnabled() ? ((isMouseOver || isMouseDown) ? 1.0f : 0.8f) : 0.3f;
auto textColour = findColour (defaultTextColourId).withMultipliedAlpha (alpha);
#ifndef BUILDING_JUCE_COMPILEENGINE
auto textColour = findColour (defaultTextColourId).withMultipliedAlpha (alpha);
auto iconColour = findColour (button.isFrontTab() ? activeTabIconColourId
: inactiveTabIconColourId);


Loading…
Cancel
Save