mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-03 01:38:09 +01:00
Fix: [MinGW] Silence 2 cast warnings
This commit is contained in:
parent
00e3fddd0c
commit
15f66329c2
@ -144,7 +144,7 @@ void UniscribeResetScriptCache(FontSize size)
|
|||||||
/** Load the matching native Windows font. */
|
/** Load the matching native Windows font. */
|
||||||
static HFONT HFontFromFont(Font *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;
|
LOGFONT logfont;
|
||||||
ZeroMemory(&logfont, sizeof(LOGFONT));
|
ZeroMemory(&logfont, sizeof(LOGFONT));
|
||||||
|
Loading…
Reference in New Issue
Block a user