}
else
{
- window = Dali::Window::New(PositionSize(0,0,w,h) ,"", false);
- if( window )
+ if(Internal::Adaptor::Adaptor::GetImplementation(application->GetAdaptor()).IsMultipleWindowSupported())
{
+ window = Dali::Window::New(PositionSize(0,0,w,h) ,"", false);
DALI_LOG_RELEASE_INFO("Widget Instance create new Window (win:%p, cnt:%d) (%dx%d) (id:%s )\n", window, application->GetWidgetCount(), w, h, std::string(id).c_str());
}
else
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");
+ }
+ Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(posSize, name, className, isTransparent);
- Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
+ Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
- if (isAdaptorAvailable)
- {
- Dali::Adaptor& adaptor = Internal::Adaptor::Adaptor::Get();
- Internal::Adaptor::Adaptor::GetImplementation(adaptor).AddWindow(sceneHolder, name, className, isTransparent);
- }
- newWindow = Window(window);
- }
- else
+ 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;
}