Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
isNewWindowAllowed = Internal::Adaptor::Adaptor::GetImplementation(adaptor).IsMultipleWindowSupported();
}
-
- if (isNewWindowAllowed)
+ if (!isNewWindowAllowed)
{
- Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
+ DALI_LOG_ERROR("This device can't support multiple windows.\n");
+ }
- Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
+ Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
- if (isAdaptorAvailable)
- {
- Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
- Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent);
- }
- newWindow = Window(window);
- }
- else
+ Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
+
+ if (isAdaptorAvailable)
{
- DALI_LOG_ERROR("This device can't support multiple windows.\n");
+ Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
+ Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent);
}
+ newWindow = Window(window);
return newWindow;
}