1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Cleaned up some comments.

This commit is contained in:
jules 2013-10-22 12:43:49 +01:00
parent 40ca8a7787
commit b2423c4e35

View file

@ -298,15 +298,11 @@ void ComponentPeer::handleMovedOrResized()
Rectangle<int> newBounds (Component::ComponentHelpers::rawPeerPositionToLocal (component, getBounds()));
Rectangle<int> oldBounds (component.getBounds());
// oldBounds = Component::ComponentHelpers::localPositionToRawPeerPos (component, oldBounds);
const bool wasMoved = (oldBounds.getPosition() != newBounds.getPosition());
const bool wasResized = (oldBounds.getWidth() != newBounds.getWidth() || oldBounds.getHeight() != newBounds.getHeight());
if (wasMoved || wasResized)
{
// newBounds = Component::ComponentHelpers::rawPeerPositionToLocal (component, newBounds);
component.bounds = newBounds;
if (wasResized)