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:
parent
40ca8a7787
commit
b2423c4e35
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue