]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcclient.cpp
Applied part of [ 1575767 ] Init/size/check fixes for sockets
[wxWidgets.git] / src / os2 / dcclient.cpp
index 2100b16925d343634b6dd3816b88af72a6daa6b8..b811e9a8df439eaf4b8c6ed84840f070eaaa5a6f 100644 (file)
@@ -168,17 +168,10 @@ void wxWindowDC::InitDC()
     //
     SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
 
-    wxColour vColor( wxT("BLACK") );
-    m_pen.SetColour(vColor);
-
-    vColor.Set( wxT("WHITE") );
-    m_brush.SetColour(vColor);
+    m_pen.SetColour(*wxBLACK);
+    m_brush.SetColour(*wxWHITE);
     InitializePalette();
-    wxFont*                         pFont = new wxFont( 10
-                                                       ,wxMODERN
-                                                       ,wxNORMAL
-                                                       ,wxBOLD
-                                                      );
+    wxFont* pFont = new wxFont( 10, wxMODERN, wxNORMAL, wxBOLD );
     SetFont(*pFont);
     delete pFont;
     //