attila
c9c2ca0aab
Fix float equality warning in Rectangle::enlargeIfAdjacent()
Co-authored-by: Tobias Hienzsch <post@tobias-hienzsch.de>
1 year ago
Tom Poole
6bf9bb9a2e
Add final specifiers in implementation files
1 year ago
Tom Poole
7d45d498b9
Removed some superfluous consts from definitions
1 year ago
Tom Poole
0dfaa98e86
Rectangle: Add nodiscard to some methods
1 year ago
Tom Poole
3aa5d96e67
approximatelyEqual: Fix some compilation errors
1 year ago
Anthony Nicholls
2bb530f636
approximatelyEqual: Add customisable tolerances for floating-point comparisons
1 year ago
reuk
c8c4cdc7d5
EdgeTable: Add offset before truncating to somewhat restore old rounding behaviour
2 years ago
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.
2 years ago
reuk
28414a6af8
Global: Avoid floating-point equality checks where possible
2 years ago
reuk
a6638f8a6d
Path: Allow addPath to take a reference to self
2 years ago
reuk
cb14aa983d
Path: Allow addPath to take a reference to self
2 years ago
reuk
d7f3ae4fc1
RectangleList: Avoid entering a death spiral when subtracting very close rectangles
2 years ago
reuk
7c14c1fcd7
Use more concise stdlib type aliases
2 years ago
reuk
8b8ae10059
Build: Replace JUCE_NODISCARD with [[nodiscard]]
2 years ago
attila
6f3fb5a29f
Linux: Adjust natively reported border size by the current scale factor
3 years ago
attila
8f99c084fe
Linux: Adjust natively reported border size by the current scale factor
3 years ago
Tom Poole
2ec861d99e
Update licensing banners to JUCE 7
3 years ago
Tom Poole
dea3fe60e4
Update copyright banners
3 years ago
reuk
ae646dde16
StandaloneFilterWindow: Account for native frame size in constrainer
3 years ago
Tom Poole
ed4f638ff7
Line: Add explicit methods for lengthening the start and end points
3 years ago
Tom Poole
0d82541728
Point: Fix a division by zero in getPointAlongLine
3 years ago
Tom Poole
04a8a44a85
Make Path::intersectsLine const
3 years ago
reuk
1d1d743b9f
Build: Add -Wdeprecated to recommended flags and fix new warnings
3 years ago
reuk
b80927fc91
Nodiscard: Add to builder-pattern functions
3 years ago
reuk
44b34be183
Rectangle: Add string conversion functions for floats and doubles
3 years ago
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.
3 years ago
reuk
1a4296e98b
EdgeTable: Avoid shifts of negative numbers
3 years ago
reuk
8dc7636fc4
PathFlatteningIterator: Ensure iterator terminates when flattening paths with very large coordinate values
4 years ago
reuk
31a7c62baf
Windows: Fix and suppress some analysis warnings
This fixes warnings that are emitted when building with the `-analyze`
flag enabled.
4 years ago
reuk
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace
4 years ago
reuk
754ec66b42
Point: Fix incorrect type conversions in operator* and operator/
5 years ago
reuk
394c4fd475
Clang: Fix warnings when building with clang 10
5 years ago
ed
009d685179
Updated all license headers
5 years ago
reuk
1502a3a8f2
Clang: Fix errors when building with clang on windows with C++20 enabled
5 years ago
ed
3ccbf8bc74
Use getDeterminant() method in AffineTransform::inverted()
5 years ago
ed
b77b14c6c3
Fixed some incorrect documentation examples for the Rectangle::removeFromRight() and ::removeFromBottom() methods
5 years ago
reuk
4cf66d6522
Cleanup: Remove redundant inlines
5 years ago
ed
c419bc516d
Fix for Parallelogram::transformedBy()
5 years ago
Tom Poole
894e7d2bd2
Updated all license headers
5 years ago
Tom Poole
2d16374b14
Updated all license headers
5 years ago
reuk
327f817b9b
Copyrights: Update commercial/gpl headers to be gpl-only
5 years ago
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
5 years ago
Tom Poole
28e03f0815
Replaced all instances of JUCE_CONSTEXPR with constexpr
5 years ago
ed
59a058fdc6
Fixed some warnings flagged up when enabling -Wswitch-enum, -Wswitch-default, -Wredundant-decls, and -Wimplicit-fallthrough
5 years ago
ed
a54da0b832
Fixed some more typos
5 years ago
Tom Poole
a93ce46534
Fixed a bug in the previous commit
5 years ago
Tom Poole
ae0b8cf406
Fixed a Rectangle intersection issue
5 years ago
jules
485feb47ed
Tweaked a couple of Rectangle methods to avoid some spurious assertions triggered by rounding errors
6 years ago
ed
88fecd196e
Fixed a typo
6 years ago
ed
a234721110
Added various clang-tidy modernize-* fixes
6 years ago