| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "../../../include/fxge/fx_ge.h" | 7 #include "../../../include/fxge/fx_ge.h" |
| 8 #include "apple_int.h" | 8 #include "apple_int.h" |
| 9 #if _FX_OS_ == _FX_MACOSX_ | 9 #if _FX_OS_ == _FX_MACOSX_ |
| 10 static const struct { | 10 static const struct { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 pInfo->AddPath("/System/Library/Fonts"); | 96 pInfo->AddPath("/System/Library/Fonts"); |
| 97 return pInfo; | 97 return pInfo; |
| 98 } | 98 } |
| 99 void CFX_GEModule::InitPlatform() | 99 void CFX_GEModule::InitPlatform() |
| 100 { | 100 { |
| 101 m_pPlatformData = FX_NEW CApplePlatform; | 101 m_pPlatformData = FX_NEW CApplePlatform; |
| 102 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); | 102 m_pFontMgr->SetSystemFontInfo(IFX_SystemFontInfo::CreateDefault()); |
| 103 } | 103 } |
| 104 void CFX_GEModule::DestroyPlatform() | 104 void CFX_GEModule::DestroyPlatform() |
| 105 { | 105 { |
| 106 if (m_pPlatformData) { | 106 delete (CApplePlatform *)m_pPlatformData; |
| 107 delete (CApplePlatform *) m_pPlatformData; | |
| 108 } | |
| 109 m_pPlatformData = NULL; | 107 m_pPlatformData = NULL; |
| 110 } | 108 } |
| 111 #endif | 109 #endif |
| OLD | NEW |