mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-31 03:00:05 +00:00
Couple of minor changes to Line and Graphics methods. Small fix for mouse event handling.
This commit is contained in:
parent
bab3c321c9
commit
0e59a56a51
15 changed files with 378 additions and 82 deletions
|
|
@ -159,9 +159,9 @@ void Graphics::setOrigin (const int newOriginX, const int newOriginY)
|
|||
context->setOrigin (newOriginX, newOriginY);
|
||||
}
|
||||
|
||||
bool Graphics::clipRegionIntersects (const int x, const int y, const int w, const int h) const
|
||||
bool Graphics::clipRegionIntersects (const Rectangle<int>& area) const
|
||||
{
|
||||
return context->clipRegionIntersects (Rectangle<int> (x, y, w, h));
|
||||
return context->clipRegionIntersects (area);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -394,7 +394,7 @@ void Graphics::drawBevel (const int x, const int y, const int width, const int h
|
|||
// passing in a silly number can cause maths problems in rendering!
|
||||
jassert (areCoordsSensibleNumbers (x, y, width, height));
|
||||
|
||||
if (clipRegionIntersects (x, y, width, height))
|
||||
if (clipRegionIntersects (Rectangle<int> (x, y, width, height)))
|
||||
{
|
||||
context->saveState();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue