mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor fix for Path. Added a missing file.
This commit is contained in:
parent
da7e8603f7
commit
c0fb38c35c
5 changed files with 23 additions and 4 deletions
|
|
@ -696,7 +696,7 @@ void Path::addBubble (float x, float y,
|
|||
if (whichSide == 0)
|
||||
{
|
||||
const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f;
|
||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2) * arrowPos - halfArrowW);
|
||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2 - arrowWidth)) * arrowPos - halfArrowW);
|
||||
lineTo (arrowX1, y);
|
||||
lineTo (tipX, tipY);
|
||||
lineTo (arrowX1 + halfArrowW * 2.0f, y);
|
||||
|
|
@ -710,7 +710,7 @@ void Path::addBubble (float x, float y,
|
|||
if (whichSide == 3)
|
||||
{
|
||||
const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f;
|
||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2) * arrowPos - halfArrowH);
|
||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2 - arrowWidth) * arrowPos - halfArrowH);
|
||||
lineTo (x + w, arrowY1);
|
||||
lineTo (tipX, tipY);
|
||||
lineTo (x + w, arrowY1 + halfArrowH * 2.0f);
|
||||
|
|
@ -724,7 +724,7 @@ void Path::addBubble (float x, float y,
|
|||
if (whichSide == 2)
|
||||
{
|
||||
const float halfArrowW = jmin (arrowWidth, w - cs2) * 0.5f;
|
||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2) * arrowPos - halfArrowW);
|
||||
const float arrowX1 = x + cs + jmax (0.0f, (w - cs2 - arrowWidth) * arrowPos - halfArrowW);
|
||||
lineTo (arrowX1 + halfArrowW * 2.0f, y + h);
|
||||
lineTo (tipX, tipY);
|
||||
lineTo (arrowX1, y + h);
|
||||
|
|
@ -738,7 +738,7 @@ void Path::addBubble (float x, float y,
|
|||
if (whichSide == 1)
|
||||
{
|
||||
const float halfArrowH = jmin (arrowWidth, h - cs2) * 0.5f;
|
||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2) * arrowPos - halfArrowH);
|
||||
const float arrowY1 = y + cs + jmax (0.0f, (h - cs2 - arrowWidth) * arrowPos - halfArrowH);
|
||||
lineTo (x, arrowY1 + halfArrowH * 2.0f);
|
||||
lineTo (tipX, tipY);
|
||||
lineTo (x, arrowY1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue