X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4244c20bf5347a453568adca86876a210bb68256..9c9c3d7a8f6c4ee3481674e901d34714ee18915d:/src/msw/font.cpp diff --git a/src/msw/font.cpp b/src/msw/font.cpp index c1d032c476..dc601f5af8 100644 --- a/src/msw/font.cpp +++ b/src/msw/font.cpp @@ -432,6 +432,7 @@ void wxNativeFontInfo::SetStyle(wxFontStyle style) // fall through case wxFONTSTYLE_NORMAL: + lf.lfItalic = FALSE; break; case wxFONTSTYLE_ITALIC: @@ -741,9 +742,9 @@ bool wxFont::FreeResource(bool WXUNUSED(force)) return FALSE; } -WXHANDLE wxFont::GetResourceHandle() +WXHANDLE wxFont::GetResourceHandle() const { - return GetHFONT(); + return (WXHANDLE)GetHFONT(); } WXHFONT wxFont::GetHFONT() const