diff options
Diffstat (limited to 'core/src/fxge/android/fx_android_imp.cpp')
-rw-r--r-- | core/src/fxge/android/fx_android_imp.cpp | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/core/src/fxge/android/fx_android_imp.cpp b/core/src/fxge/android/fx_android_imp.cpp index c2b5460a90..1927358983 100644 --- a/core/src/fxge/android/fx_android_imp.cpp +++ b/core/src/fxge/android/fx_android_imp.cpp @@ -6,27 +6,25 @@ #include "fx_fpf.h" #if _FX_OS_ == _FX_ANDROID_ -void CFX_GEModule::InitPlatform() -{ - IFPF_DeviceModule *pDeviceModule = FPF_GetDeviceModule(); - if (!pDeviceModule) { - return; +void CFX_GEModule::InitPlatform() { + IFPF_DeviceModule* pDeviceModule = FPF_GetDeviceModule(); + if (!pDeviceModule) { + return; + } + IFPF_FontMgr* pFontMgr = pDeviceModule->GetFontMgr(); + if (pFontMgr) { + CFX_AndroidFontInfo* pFontInfo = FX_NEW CFX_AndroidFontInfo; + if (!pFontInfo) { + return; } - IFPF_FontMgr *pFontMgr = pDeviceModule->GetFontMgr(); - if (pFontMgr) { - CFX_AndroidFontInfo *pFontInfo = FX_NEW CFX_AndroidFontInfo; - if (!pFontInfo) { - return; - } - pFontInfo->Init(pFontMgr); - m_pFontMgr->SetSystemFontInfo(pFontInfo); - } - m_pPlatformData = pDeviceModule; + pFontInfo->Init(pFontMgr); + m_pFontMgr->SetSystemFontInfo(pFontInfo); + } + m_pPlatformData = pDeviceModule; } -void CFX_GEModule::DestroyPlatform() -{ - if (m_pPlatformData) { - ((IFPF_DeviceModule*)m_pPlatformData)->Destroy(); - } +void CFX_GEModule::DestroyPlatform() { + if (m_pPlatformData) { + ((IFPF_DeviceModule*)m_pPlatformData)->Destroy(); + } } #endif |