Browse Source

Introjucer: RTAS exporter fix.

tags/2021-05-28
jules 14 years ago
parent
commit
06895cefe1
2 changed files with 9 additions and 10 deletions
  1. +4
    -2
      extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
  2. +5
    -8
      modules/juce_graphics/fonts/juce_TextLayout.cpp

+ 4
- 2
extras/Introjucer/Source/Project/jucer_AudioPluginModule.h View File

@@ -306,11 +306,13 @@ namespace RTASHelpers
.toWindowsStyle().quoted()));
String msvcPathToRTASFolder (exporter.getJucePathFromTargetFolder()
.getChildFile ("modules/juce_audio_plugin_client/RTAS")
.getChildFile ("juce_audio_plugin_client/RTAS")
.toWindowsStyle() + "\\");
exporter.msvcDelayLoadedDLLs = "DAE.dll; DigiExt.dll; DSI.dll; PluginLib.dll; DSPManager.dll";
exporter.getExtraLinkerFlags() = exporter.getExtraLinkerFlags().toString() + " /FORCE:multiple";
if (! exporter.getExtraLinkerFlags().toString().contains ("/FORCE:multiple"))
exporter.getExtraLinkerFlags() = exporter.getExtraLinkerFlags().toString() + " /FORCE:multiple";
for (ProjectExporter::ConfigIterator config (exporter); config.next();)
{


+ 5
- 8
modules/juce_graphics/fonts/juce_TextLayout.cpp View File

@@ -371,19 +371,16 @@ namespace TextLayoutHelpers
if ((text.getJustification().getFlags() & (Justification::right | Justification::horizontallyCentred)) != 0)
{
const int totalW = (int) layout.getWidth();
const bool isCentred = (text.getJustification().getFlags() & Justification::horizontallyCentred) != 0;
for (int i = 0; i < layout.getNumLines(); ++i)
{
const int lineW = getLineWidth (i);
float dx = 0;
float dx = (float) (totalW - getLineWidth (i));
if ((text.getJustification().getFlags() & Justification::right) != 0)
dx = (float) (totalW - lineW);
else
dx = (totalW - lineW) / 2.0f;
if (isCentred)
dx /= 2.0f;
TextLayout::Line& glyphLine = layout.getLine (i);
glyphLine.lineOrigin.x += dx;
layout.getLine(i).lineOrigin.x += dx;
}
}
}


Loading…
Cancel
Save