]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbufcmn.cpp
use the currently active event loop instead of the main one in WakeUpIdle()
[wxWidgets.git] / src / common / dcbufcmn.cpp
index 6ae9f3ef8240df581a5d6707601d971c8c487201..58d40b5f9b8bcec01cd5107f277e4e2672ba6e73 100644 (file)
@@ -115,6 +115,11 @@ void wxBufferedDC::UseBuffer(wxCoord w, wxCoord h)
     }
 
     SelectObject(*m_buffer);
+
+    // now that the DC is valid we can inherit the attributes (fonts, colours,
+    // layout direction, ...) from the original DC
+    if ( m_dc->IsOk() )
+        CopyAttributes(*m_dc);
 }
 
 void wxBufferedDC::UnMask()