mRelayoutController->SetStageSize( size.width, size.height );
}
+void Core::SurfaceResized( unsigned int width, unsigned int height, int orientation )
+{
+ mStage->SurfaceResized( width, height, orientation );
+
+ // The stage-size may be less than surface-size (reduced by top-margin)
+ Vector2 size = mStage->GetSize();
+ mRelayoutController->SetStageSize( size.width, size.height );
+}
+
void Core::SetTopMargin( unsigned int margin )
{
mStage->SetTopMargin( margin );
// Check the Notification Manager message queue to set needsNotification
status.needsNotification = mNotificationManager->MessagesToProcess();
+ // Check if the default surface is changed
+ status.surfaceRectChanged = mUpdateManager->IsDefaultSurfaceRectChanged();
+
// No need to keep update running if there are notifications to process.
// Any message to update will wake it up anyways
}