From eeff964ac19918b088017e5ff189e64d36e0f389 Mon Sep 17 00:00:00 2001 From: David Webster Date: Thu, 21 Dec 2000 04:24:11 +0000 Subject: [PATCH] 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 --- src/os2/dcclient.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/os2/dcclient.cpp b/src/os2/dcclient.cpp index a2c49a9655..bc20d8ac52 100644 --- a/src/os2/dcclient.cpp +++ b/src/os2/dcclient.cpp @@ -300,11 +300,13 @@ wxPaintDC::wxPaintDC( ); ::WinFillRect(hPS, &g_paintStruct, m_pCanvas->GetBackgroundColour().GetPixel()); + ::WinQueryWindowRect( GetWinHwnd(m_pCanvas) + ,&m_vRclPaint + ); } m_bIsPaintTime = TRUE; m_hDC = (WXHDC) -1; // to satisfy those anonizmous efforts - m_vRclPaint = g_paintStruct; ms_cache.Add(new wxPaintDCInfo(m_pCanvas, this)); } SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID)); -- 2.45.2