mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Created a new method Graphics::beginTransparencyLayer(), to help with compositing semi-transparent rendering.
This commit is contained in:
parent
640a335537
commit
1629f9f66a
20 changed files with 1202 additions and 993 deletions
|
|
@ -151,8 +151,8 @@ const Rectangle<float> DrawableShape::getDrawableBounds() const
|
|||
|
||||
bool DrawableShape::hitTest (int x, int y) const
|
||||
{
|
||||
const float globalX = x - originRelativeToComponent.getX();
|
||||
const float globalY = y - originRelativeToComponent.getY();
|
||||
const float globalX = (float) (x - originRelativeToComponent.getX());
|
||||
const float globalY = (float) (y - originRelativeToComponent.getY());
|
||||
|
||||
return path.contains (globalX, globalY)
|
||||
|| (isStrokeVisible() && strokePath.contains (globalX, globalY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue