Tom Poole
7d45d498b9
Removed some superfluous consts from definitions
2023-09-20 16:31:10 +01:00
Tom Poole
0dfaa98e86
Rectangle: Add nodiscard to some methods
2023-09-15 16:30:10 +01:00
Tom Poole
3aa5d96e67
approximatelyEqual: Fix some compilation errors
2023-08-22 10:16:52 +01:00
Anthony Nicholls
2bb530f636
approximatelyEqual: Add customisable tolerances for floating-point comparisons
2023-08-17 12:47:53 +00:00
reuk
c8c4cdc7d5
EdgeTable: Add offset before truncating to somewhat restore old rounding behaviour
2023-06-08 15:05:43 +01:00
reuk
4f67a18a3f
EdgeTable: Avoid integer truncation when rendering paths with large coordinates
...
Previously, if the PathFlatteningIterator returned a line segment with
very large x or y positions, the result of
roundToInt (iter.y1 * 256.0f)
could be incorrect, if the result was too large to fit in an int.
Using int64_t to store intermediate results, converting to int when
updating the edge table itself produces accurate results for a wider
range of inputs.
2023-06-01 18:49:32 +01:00
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2023-04-04 19:55:11 +01:00
reuk
a6638f8a6d
Path: Allow addPath to take a reference to self
2023-02-15 22:23:56 +00:00
reuk
cb14aa983d
Path: Allow addPath to take a reference to self
2023-02-09 17:54:19 +00:00
reuk
d7f3ae4fc1
RectangleList: Avoid entering a death spiral when subtracting very close rectangles
2022-12-14 11:12:31 +00:00
reuk
7c14c1fcd7
Use more concise stdlib type aliases
2022-09-26 18:03:47 +01:00
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]]
2022-09-12 16:14:57 +01:00
attila
6f3fb5a29f
Linux: Adjust natively reported border size by the current scale factor
2022-05-19 12:06:38 +02:00
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
2022-05-16 17:55:48 +01:00
Tom Poole
dea3fe60e4
Update copyright banners
2022-04-04 12:36:32 +01:00
reuk
ae646dde16
StandaloneFilterWindow: Account for native frame size in constrainer
2022-04-01 16:41:47 +01:00
Tom Poole
ed4f638ff7
Line: Add explicit methods for lengthening the start and end points
2022-03-24 14:01:34 +00:00
Tom Poole
0d82541728
Point: Fix a division by zero in getPointAlongLine
2022-03-17 11:34:32 +00:00
Tom Poole
04a8a44a85
Make Path::intersectsLine const
2022-02-24 14:20:08 +00:00
reuk
1d1d743b9f
Build: Add -Wdeprecated to recommended flags and fix new warnings
2022-02-23 10:56:10 +00:00
reuk
b80927fc91
Nodiscard: Add to builder-pattern functions
2022-01-27 18:43:21 +00:00
reuk
44b34be183
Rectangle: Add string conversion functions for floats and doubles
2021-11-24 16:20:37 +00:00
ed
b9542ccc4c
Update code to use C++14 [[deprecated]] attribute
...
This commit removes the various compiler-specific JUCE_DEPRECATED macros and replaces them with C++14's deprecated attribute. It also removes the JUCE_CATCH_DEPRECATED_CODE_MISUSE flag as we can rely on the override specifier catching usage of these old virtual methods, and tidies up the DOXYGEN preprocessor checks as they were inconsistent across the codebase.
2021-09-29 16:14:00 +01:00
reuk
1a4296e98b
EdgeTable: Avoid shifts of negative numbers
2021-09-28 14:04:10 +01:00
reuk
8dc7636fc4
PathFlatteningIterator: Ensure iterator terminates when flattening paths with very large coordinate values
2021-06-04 13:04:24 +01:00
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
...
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
2021-05-26 15:34:26 +01:00
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace
2021-02-18 10:54:29 +00:00
reuk
754ec66b42
Point: Fix incorrect type conversions in operator* and operator/
2020-07-10 12:25:54 +01:00
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
2020-07-01 10:00:43 +01:00
ed
009d685179
Updated all license headers
2020-06-29 08:30:22 +01:00
reuk
1502a3a8f2
Clang: Fix errors when building with clang on windows with C++20 enabled
2020-06-08 18:10:50 +01:00
ed
3ccbf8bc74
Use getDeterminant() method in AffineTransform::inverted()
2020-06-05 09:55:51 +01:00
ed
b77b14c6c3
Fixed some incorrect documentation examples for the Rectangle::removeFromRight() and ::removeFromBottom() methods
2020-05-22 11:22:43 +01:00
reuk
4cf66d6522
Cleanup: Remove redundant inlines
2020-04-27 10:22:06 +01:00
ed
c419bc516d
Fix for Parallelogram::transformedBy()
2020-04-24 09:03:52 +01:00
Tom Poole
894e7d2bd2
Updated all license headers
2020-04-23 17:30:39 +01:00
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
2020-04-09 15:22:56 +01:00
ed
26c9468dc5
Deprecated AffineTransform::getScaleFactor() as it was producing incorrect values for transforms containing rotations. Added getDeterminant() method for getting the determinant of the transform
2020-03-30 18:34:19 +01:00
Tom Poole
28e03f0815
Replaced all instances of JUCE_CONSTEXPR with constexpr
2020-03-11 17:21:30 +00:00
ed
59a058fdc6
Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough
2020-03-09 17:39:28 +00:00
ed
a54da0b832
Fixed some more typos
2020-01-07 08:53:23 +00:00
Tom Poole
a93ce46534
Fixed a bug in the previous commit
2019-09-25 09:54:20 +01:00
Tom Poole
ae0b8cf406
Fixed a Rectangle intersection issue
2019-09-24 14:48:24 +01:00
jules
485feb47ed
Tweaked a couple of Rectangle methods to avoid some spurious assertions triggered by rounding errors
2019-06-21 12:15:51 +01:00
ed
88fecd196e
Fixed a typo
2019-06-10 09:45:19 +01:00
ed
a234721110
Added various clang-tidy modernize-* fixes
2019-01-31 15:15:31 +00:00
ed
eaf0f990d4
Replaced all uses of static_cast<Type&&> with std::move
2018-11-28 17:29:20 +00:00
Tom Poole
06f8accd9c
Fixed compatibility with Xcode 8.2.1
2018-11-09 09:19:34 +00:00
Tom Poole
b25c14535a
Fixed an issue adding two RectangleLists
2018-10-12 09:25:28 +01:00
jules
6fda0bffca
Fixed some stray zeros that were still being passed as null pointers
2018-10-05 12:15:04 +01:00