internal->SetCommandLineOptions(argc, argv);
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
+ internal->GetWindow().SetTransparency((windowMode == Application::TRANSPARENT));
- //Store only the value before adaptor is created
+ // Store only the value before adaptor is created
internal->StoreWindowPositionSize(positionSize);
}
else
{
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, positionSize, Internal::Adaptor::Framework::NORMAL, type, false);
+ WindowData windowData;
+ windowData.SetPositionSize(positionSize);
+ windowData.SetTransparency(windowMode == Application::TRANSPARENT);
+ windowData.SetWindowType(type);
+
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
}
return Application(internal.Get());
}