Fix for the wrong painting rectangle being set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6fe190576e
commit
eeff964ac1
@ -300,11 +300,13 @@ wxPaintDC::wxPaintDC(
|
|||||||
);
|
);
|
||||||
|
|
||||||
::WinFillRect(hPS, &g_paintStruct, m_pCanvas->GetBackgroundColour().GetPixel());
|
::WinFillRect(hPS, &g_paintStruct, m_pCanvas->GetBackgroundColour().GetPixel());
|
||||||
|
::WinQueryWindowRect( GetWinHwnd(m_pCanvas)
|
||||||
|
,&m_vRclPaint
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_bIsPaintTime = TRUE;
|
m_bIsPaintTime = TRUE;
|
||||||
m_hDC = (WXHDC) -1; // to satisfy those anonizmous efforts
|
m_hDC = (WXHDC) -1; // to satisfy those anonizmous efforts
|
||||||
m_vRclPaint = g_paintStruct;
|
|
||||||
ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));
|
ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this));
|
||||||
}
|
}
|
||||||
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
|
SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
|
||||||
|
Loading…
Reference in New Issue
Block a user