summaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-05-14 02:15:26 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-06-10 23:17:29 +0200
commit15f66329c28cb0aa3107dbb8da71281b1501be6b (patch)
tree44710549ee3e59ce4ac2bae776537927ba9c2966 /src/os
parent00e3fddd0cdff727b7a1c263e86a7238eb3f4780 (diff)
downloadopenttd-15f66329c28cb0aa3107dbb8da71281b1501be6b.tar.xz
Fix: [MinGW] Silence 2 cast warnings
Diffstat (limited to 'src/os')
-rw-r--r--src/os/windows/string_uniscribe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/windows/string_uniscribe.cpp b/src/os/windows/string_uniscribe.cpp
index 6c0a9366e..7c70557b6 100644
--- a/src/os/windows/string_uniscribe.cpp
+++ b/src/os/windows/string_uniscribe.cpp
@@ -144,7 +144,7 @@ void UniscribeResetScriptCache(FontSize size)
/** Load the matching native Windows font. */
static HFONT HFontFromFont(Font *font)
{
- if (font->fc->GetOSHandle() != nullptr) return CreateFontIndirect((const PLOGFONT)font->fc->GetOSHandle());
+ if (font->fc->GetOSHandle() != nullptr) return CreateFontIndirect(reinterpret_cast<PLOGFONT>(const_cast<void *>(font->fc->GetOSHandle())));
LOGFONT logfont;
ZeroMemory(&logfont, sizeof(LOGFONT));