*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
- if( updateProxy.GetPositionAndSize( i, position, size ) ) // Retrieve the position and size using the Actor ID.
+ if(updateProxy.GetPositionAndSize(i, position, size)) // Retrieve the position and size using the Actor ID.
- float halfWidthPoint = stageHalfWidth - size.width * 0.5f;
- float xTranslation = abs( position.x );
- if( xTranslation > halfWidthPoint )
+ float halfWidthPoint = windowHalfWidth - size.width * 0.5f;
+ float xTranslation = abs(position.x);
+ if(xTranslation > halfWidthPoint)
{
// Actor has hit the edge, adjust the size accordingly.
float adjustment = xTranslation - halfWidthPoint;
size.width += adjustment * SIZE_MULTIPLIER;
size.height += adjustment * SIZE_MULTIPLIER;
{
// Actor has hit the edge, adjust the size accordingly.
float adjustment = xTranslation - halfWidthPoint;
size.width += adjustment * SIZE_MULTIPLIER;
size.height += adjustment * SIZE_MULTIPLIER;