]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcclient.cpp
Delay checking for the requested sash position until the first
[wxWidgets.git] / src / os2 / dcclient.cpp
index 9d33ade289043275e3472d29178d8c74bb32c4ae..db4fb345624f341ee111903bb882309e3356c773 100644 (file)
@@ -142,7 +142,6 @@ wxWindowDC::wxWindowDC(
 
 void wxWindowDC::InitDC()
 {
-    wxColour                        vColor;
 
     //
     // The background mode is only used for text background and is set in
@@ -155,9 +154,10 @@ void wxWindowDC::InitDC()
     //
     SetBackground(wxBrush(m_pCanvas->GetBackgroundColour(), wxSOLID));
 
-    vColor.InitFromName("BLACK");
+    wxColour vColor( wxT("BLACK") );
     m_pen.SetColour(vColor);
-    vColor.Set("WHITE");
+
+    vColor.Set( wxT("WHITE") );
     m_brush.SetColour(vColor);
     InitializePalette();
     wxFont*                         pFont = new wxFont( 12