mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
The Point and Rectangle classes are now templated, so can be used for either float or int co-ordinates. This means that wherever you've used these classes, you'll need to replace them with Rectangle<int> or Point<float> in your code. A couple of methods in Path have changed to take advantage of the new ability.
This commit is contained in:
parent
31a102008d
commit
7bc24ae42a
153 changed files with 2258 additions and 2753 deletions
|
|
@ -540,10 +540,10 @@ public:
|
|||
float x1, y1, x2, y2;
|
||||
getPoints (x1, y1, x2, y2);
|
||||
|
||||
const Rectangle newBounds ((int) jmin (x1, x2) - 4,
|
||||
(int) jmin (y1, y2) - 4,
|
||||
(int) fabsf (x1 - x2) + 8,
|
||||
(int) fabsf (y1 - y2) + 8);
|
||||
const Rectangle<int> newBounds ((int) jmin (x1, x2) - 4,
|
||||
(int) jmin (y1, y2) - 4,
|
||||
(int) fabsf (x1 - x2) + 8,
|
||||
(int) fabsf (y1 - y2) + 8);
|
||||
|
||||
if (newBounds != getBounds())
|
||||
setBounds (newBounds);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue