pDragDropEventListener->OnTouchDragged(__public, _CoordinateSystemUtils::ConvertToInteger(touchInfo.GetCurrentPosition()), _CoordinateSystemUtils::ConvertToInteger(touchInfo.GetCurrentPosition()));
}
IDragDropEventListenerF* pDragDropEventListenerF = dynamic_cast <IDragDropEventListenerF*>(pDragListener);
- if (pDragDropEventListener != null)
+ if (pDragDropEventListenerF != null)
{
pDragDropEventListenerF->OnTouchDraggedF(__public, touchInfo.GetCurrentPosition(), touchInfo.GetCurrentPosition());
}
_KeyEventManager::Initialize();
_IndicatorManager::InitializeInstance();
_AccessibilityManager::CreateInstance();
- InitializeScreenDpi();
SetLastResult(E_SUCCESS);
}
void
-_ControlManager::InitializeScreenDpi()
+_ControlManager::SetScreenDpi(int dpi)
{
- Tizen::System::_SystemInfoImpl::GetSysInfo(L"http://tizen.org/feature/screen.dpi", __screenDpi);
+ __screenDpi = dpi;
}
int
Tizen::Graphics::Rectangle ownerRc((dynamic_cast<_Window*>(pCapturedControl)->GetOwner())->GetAbsoluteBounds());
if ((x >= ownerRc.x) && (x <= (ownerRc.x + ownerRc.width)) && (y >= ownerRc.y) && (y <= (ownerRc.y + ownerRc.height)))
{
- pControl = dynamic_cast<_Window*>(pCapturedControl)->GetOwner();
+ _Window * pWindow = dynamic_cast<_Window*>(pCapturedControl);
+ if (pWindow)
+ {
+ pControl = pWindow->GetOwner();
+ }
}
Tizen::Graphics::Rectangle rc(pCapturedControl->GetAbsoluteBounds());
r = Tizen::System::_SystemInfoImpl::GetSysInfo(L"http://tizen.org/feature/screen.dpi", __deviceDPI);
SysTryReturn(NID_UI, r == E_SUCCESS, , E_SYSTEM, "[E_SYSTEM] system error occurred");
+ _ControlManager::GetInstance()->SetScreenDpi(__deviceDPI);
+
switch(appLogicalResolution)
{
case 240:
// Informations
Tizen::Graphics::Dimension GetScreenSize(void) const;
Tizen::Graphics::FloatDimension GetScreenSizeF(void) const;
- void InitializeScreenDpi(void);
+ void SetScreenDpi(int dpi);
int GetScreenDpi(void) const;
// Font