]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcclient.cpp
More GTK+ 1.3.1 fixes
[wxWidgets.git] / src / os2 / dcclient.cpp
index a2c49a9655024393e03144fc261b46f3b2999ba8..bc20d8ac52456654f89b0e713df4545d62f25e7d 100644 (file)
@@ -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));