Changeset - r25632:f3427a9858b5
[Not reviewed]
master
0 1 0
glx22 - 3 years ago 2021-05-14 00:15:26
glx@openttd.org
Fix: [MinGW] Silence 2 cast warnings
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/os/windows/string_uniscribe.cpp
Show inline comments
 
@@ -144,7 +144,7 @@ void UniscribeResetScriptCache(FontSize 
 
/** 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));
0 comments (0 inline, 0 general)