1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Compiler compatibility changes. Minor clean-ups. Linux windowing tweaks.

This commit is contained in:
Julian Storer 2010-03-29 14:22:11 +01:00
parent bca84263a4
commit 4f704c4d33
33 changed files with 687 additions and 834 deletions

View file

@ -97,8 +97,7 @@ void PluginListComponent::paintListBoxItem (int row,
g.setColour (Colours::black);
ga.draw (g);
float x, y, r, b;
ga.getBoundingBox (0, -1, x, y, r, b, false);
const Rectangle<float> bb (ga.getBoundingBox (0, -1, false));
String desc;
desc << pd->pluginFormatName
@ -120,7 +119,7 @@ void PluginListComponent::paintListBoxItem (int row,
g.setColour (Colours::grey);
ga.clear();
ga.addCurtailedLineOfText (Font (height * 0.6f), desc, r + 10.0f, height * 0.8f, width - r - 12.0f, true);
ga.addCurtailedLineOfText (Font (height * 0.6f), desc, bb.getRight() + 10.0f, height * 0.8f, width - bb.getRight() - 12.0f, true);
ga.draw (g);
}
}