X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15f03b25a6e735601106b49dbf711cc2ad34a1f1..186ef90c55be910263ef31cb09fe38a6ac700d1d:/src/os2/dcclient.cpp diff --git a/src/os2/dcclient.cpp b/src/os2/dcclient.cpp index ebca8b58c9..bc20d8ac52 100644 --- a/src/os2/dcclient.cpp +++ b/src/os2/dcclient.cpp @@ -270,9 +270,7 @@ wxPaintDC::wxPaintDC( } else // not in cache, create a new one { - SIZEL vSizl = { 0,0}; HPS hPS; - HRGN hRgn; hPS = ::WinBeginPaint( GetWinHwnd(m_pCanvas) ,NULLHANDLE @@ -280,6 +278,10 @@ wxPaintDC::wxPaintDC( ); if(hPS) { + POINTL vPoint[2]; + LONG lControl; + LONG lColor; + m_hOldPS = m_hPS; m_hPS = hPS; ::GpiCreateLogColorTable( m_hPS @@ -296,11 +298,15 @@ wxPaintDC::wxPaintDC( ,0L ,NULL ); + + ::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));