1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
This commit is contained in:
jules 2007-10-15 16:08:45 +00:00
parent 78d3a1748a
commit 5eea51a781
51 changed files with 329 additions and 154 deletions

View file

@ -1103,7 +1103,8 @@ void Component::getInterceptsMouseClicks (bool& allowsClicksOnThisComponent,
bool Component::contains (const int x, const int y)
{
if (x >= 0 && y >= 0 && x < getWidth() && y < getHeight()
if (((unsigned int) x) < (unsigned int) getWidth()
&& ((unsigned int) y) < (unsigned int) getHeight()
&& hitTest (x, y))
{
if (parentComponent_ != 0)
@ -1146,7 +1147,8 @@ bool Component::reallyContains (int x, int y, const bool returnTrueIfWithinAChil
Component* Component::getComponentAt (const int x, const int y)
{
if (flags.visibleFlag
&& x >= 0 && y >= 0 && x < getWidth() && y < getHeight()
&& ((unsigned int) x) < (unsigned int) getWidth()
&& ((unsigned int) y) < (unsigned int) getHeight()
&& hitTest (x, y))
{
for (int i = childComponentList_.size(); --i >= 0;)