[ 1502010 ] Cast to wrong type.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1488,7 +1488,7 @@ void wxDC::SetFont(const wxFont& font)
|
|||||||
else // selected ok
|
else // selected ok
|
||||||
{
|
{
|
||||||
if ( !m_oldFont )
|
if ( !m_oldFont )
|
||||||
m_oldFont = (WXHPEN)hfont;
|
m_oldFont = (WXHFONT)hfont;
|
||||||
|
|
||||||
m_font = font;
|
m_font = font;
|
||||||
}
|
}
|
||||||
@@ -1581,7 +1581,7 @@ void wxDC::SetBrush(const wxBrush& brush)
|
|||||||
else // selected ok
|
else // selected ok
|
||||||
{
|
{
|
||||||
if ( !m_oldBrush )
|
if ( !m_oldBrush )
|
||||||
m_oldBrush = (WXHPEN)hbrush;
|
m_oldBrush = (WXHBRUSH)hbrush;
|
||||||
|
|
||||||
m_brush = brush;
|
m_brush = brush;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: msw/enhmeta.cpp
|
// Name: src/msw/enhmeta.cpp
|
||||||
// Purpose: implementation of wxEnhMetaFileXXX classes
|
// Purpose: implementation of wxEnhMetaFileXXX classes
|
||||||
// Author: Vadim Zeitlin
|
// Author: Vadim Zeitlin
|
||||||
// Modified by:
|
// Modified by:
|
||||||
@@ -75,7 +75,7 @@ void wxEnhMetaFile::Init()
|
|||||||
}
|
}
|
||||||
else // have valid file name, load metafile from it
|
else // have valid file name, load metafile from it
|
||||||
{
|
{
|
||||||
m_hMF = GetEnhMetaFile(m_filename);
|
m_hMF = (WXHANDLE)::GetEnhMetaFile(m_filename);
|
||||||
if ( !m_hMF )
|
if ( !m_hMF )
|
||||||
wxLogSysError(_("Failed to load metafile from file \"%s\"."),
|
wxLogSysError(_("Failed to load metafile from file \"%s\"."),
|
||||||
m_filename.c_str());
|
m_filename.c_str());
|
||||||
|
Reference in New Issue
Block a user