1
0
Fork 0
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:
Julian Storer 2010-11-26 17:29:27 +00:00
parent 640a335537
commit 1629f9f66a
20 changed files with 1202 additions and 993 deletions

View file

@ -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));