summaryrefslogtreecommitdiff
path: root/core/fxge/ge/fx_ge_linux.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/ge/fx_ge_linux.cpp')
-rw-r--r--core/fxge/ge/fx_ge_linux.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fxge/ge/fx_ge_linux.cpp b/core/fxge/ge/fx_ge_linux.cpp
index 8d2c496c19..b216e12127 100644
--- a/core/fxge/ge/fx_ge_linux.cpp
+++ b/core/fxge/ge/fx_ge_linux.cpp
@@ -97,7 +97,7 @@ void* CFX_LinuxFontInfo::MapFont(int weight,
for (size_t i = 0; i < kLinuxGpNameSize; i++) {
auto it = m_FontList.find(g_LinuxGpFontList[index][i]);
if (it != m_FontList.end())
- return it->second;
+ return it->second.get();
}
break;
}
@@ -105,7 +105,7 @@ void* CFX_LinuxFontInfo::MapFont(int weight,
for (size_t i = 0; i < FX_ArraySize(g_LinuxGbFontList); ++i) {
auto it = m_FontList.find(g_LinuxGbFontList[i]);
if (it != m_FontList.end())
- return it->second;
+ return it->second.get();
}
break;
}
@@ -113,7 +113,7 @@ void* CFX_LinuxFontInfo::MapFont(int weight,
for (size_t i = 0; i < FX_ArraySize(g_LinuxB5FontList); ++i) {
auto it = m_FontList.find(g_LinuxB5FontList[i]);
if (it != m_FontList.end())
- return it->second;
+ return it->second.get();
}
break;
}
@@ -121,7 +121,7 @@ void* CFX_LinuxFontInfo::MapFont(int weight,
for (size_t i = 0; i < FX_ArraySize(g_LinuxHGFontList); ++i) {
auto it = m_FontList.find(g_LinuxHGFontList[i]);
if (it != m_FontList.end())
- return it->second;
+ return it->second.get();
}
break;
}