X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1a688e45e02b82e0b85001ee5a85d542a9c0acd..29149a64916d6fdc53e445adca9ef83bc58fb6c3:/src/os2/dcclient.cpp?ds=sidebyside

diff --git a/src/os2/dcclient.cpp b/src/os2/dcclient.cpp
index 73efcf389a..cdb7003da7 100644
--- a/src/os2/dcclient.cpp
+++ b/src/os2/dcclient.cpp
@@ -23,6 +23,7 @@
 #include "wx/string.h"
 #include "wx/log.h"
 #include "wx/window.h"
+#include "wx/app.h"
 
 #include "wx/os2/private.h"
 
@@ -141,6 +142,12 @@ wxWindowDC::wxWindowDC(
 
 void wxWindowDC::InitDC()
 {
+    wxColour                        vColor;
+
+    vColor.InitFromName("BLACK");
+    m_pen.SetColour(vColor);
+    vColor.Set("WHITE");
+    m_brush.SetColour(vColor);
     //
     // The background mode is only used for text background and is set in
     // DrawText() to OPAQUE as required, otherwise always TRANSPARENT,