- float width = size.width;
- float height = size.height;
-
- if( Size::ZERO == size )
- {
- StagePtr stage = Stage::GetCurrent();
- if( stage )
- {
- const Size& stageSize = stage->GetSize();
-
- width = stageSize.width;
- height = stageSize.height;
- }
- }
-
- if( ( width < Math::MACHINE_EPSILON_1000 ) || ( height < Math::MACHINE_EPSILON_1000 ) )