]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcclient.cpp
added wxCSConv ctor taking wxFontEncoding
[wxWidgets.git] / src / os2 / dcclient.cpp
index e1be6a1052a9041fb976c99207b216b1782e1ddc..9d33ade289043275e3472d29178d8c74bb32c4ae 100644 (file)
@@ -125,7 +125,7 @@ wxWindowDC::wxWindowDC(
     {
         vError = ::WinGetLastError(vHabmain);
         sError = wxPMErrorToStr(vError);
-        wxLogError("Unable to set current color table. Error: %s\n", sError);
+        wxLogError("Unable to set current color table. Error: %s\n", sError.c_str());
     }
     ::GpiCreateLogColorTable( m_hPS
                              ,0L
@@ -225,7 +225,7 @@ wxClientDC::wxClientDC(
     {
         vError = ::WinGetLastError(vHabmain);
         sError = wxPMErrorToStr(vError);
-        wxLogError("Unable to set current color table. Error: %s\n", sError);
+        wxLogError("Unable to set current color table. Error: %s\n", sError.c_str());
     }
     ::GpiCreateLogColorTable( m_hPS
                              ,0L
@@ -319,7 +319,7 @@ wxPaintDC::wxPaintDC(
     {
         HPS                         hPS;
 
-        m_hDC = (WXHDC)::WinOpenWindowDC(GetWinHwnd(m_pCanvas));
+        m_hDC = ::WinOpenWindowDC(GetWinHwnd(m_pCanvas));
         hPS = ::WinBeginPaint( GetWinHwnd(m_pCanvas)
                               ,NULLHANDLE
                               ,&g_paintStruct