mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-22 01:34:21 +00:00
Small change to method in RectanglePlacement and Drawable to use Rectangles instead of bare coordinates. Fix to make ValueTree::sort use an UndoManager, and to prevent different mouse buttons being interpreted as a double-click.
This commit is contained in:
parent
85c32498dc
commit
b80bb4bf38
15 changed files with 90 additions and 96 deletions
|
|
@ -207,19 +207,9 @@ void DrawableButton::paintButton (Graphics& g,
|
|||
if (imageToDraw != 0)
|
||||
{
|
||||
if (style == ImageRaw)
|
||||
{
|
||||
imageToDraw->draw (g, 1.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
imageToDraw->drawWithin (g,
|
||||
imageSpace.getX(),
|
||||
imageSpace.getY(),
|
||||
imageSpace.getWidth(),
|
||||
imageSpace.getHeight(),
|
||||
RectanglePlacement::centred,
|
||||
1.0f);
|
||||
}
|
||||
imageToDraw->drawWithin (g, imageSpace.toFloat(), RectanglePlacement::centred, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue