adaptions for latest dc changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1439,13 +1439,15 @@ void wxGDIPlusRenderer::Unload()
|
||||
wxGraphicsContext * wxGDIPlusRenderer::CreateContext( const wxWindowDC& dc)
|
||||
{
|
||||
EnsureIsLoaded();
|
||||
return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
|
||||
wxMSWDCImpl *msw = wxDynamicCast( dc.GetImpl() , wxMSWDCImpl );
|
||||
return new wxGDIPlusContext(this,(HDC) msw->GetHDC());
|
||||
}
|
||||
|
||||
wxGraphicsContext * wxGDIPlusRenderer::CreateContext( const wxMemoryDC& dc)
|
||||
{
|
||||
EnsureIsLoaded();
|
||||
return new wxGDIPlusContext(this,(HDC) dc.GetHDC());
|
||||
wxMSWDCImpl *msw = wxDynamicCast( dc.GetImpl() , wxMSWDCImpl );
|
||||
return new wxGDIPlusContext(this,(HDC) msw->GetHDC());
|
||||
}
|
||||
|
||||
wxGraphicsContext * wxGDIPlusRenderer::CreateMeasuringContext()
|
||||
|
Reference in New Issue
Block a user