]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcclient.cpp
fixed incorrect GetTextExtent for wxTELETYPE font
[wxWidgets.git] / src / os2 / dcclient.cpp
index 27ae79a395bf20c3fb97577bdbeb5e365565af21..af77090fd1610087023c5fa8f7bcf3b95f79efaf 100644 (file)
@@ -150,7 +150,7 @@ wxClientDC::wxClientDC(wxWindow *the_canvas)
     m_hDC = (WXHDC) ::WinOpenWindowDC(GetWinHwnd(the_canvas));
     m_hPS = ::GpiCreatePS( wxGetInstance()
                           ,m_hDC
-                          ,&sizl
+                          ,&vSizl
                           ,PU_PELS | GPIF_LONG | GPIA_ASSOC
                          );
 
@@ -208,7 +208,7 @@ wxPaintDC::wxPaintDC(
   wxWindow*                         pCanvas
 )
 {
-    wxCHECK_RET( canvas, wxT("NULL canvas in wxPaintDC ctor") );
+    wxCHECK_RET(pCanvas, wxT("NULL canvas in wxPaintDC ctor"));
 
 #ifdef __WXDEBUG__
     if (g_isPainting <= 0)
@@ -265,7 +265,7 @@ wxPaintDC::~wxPaintDC()
         if ( !--info->count )
         {
             ::WinEndPaint(m_hPS);
-            m_hPS          = m_OldhPS;
+            m_hPS          = m_hOldPS;
             m_bIsPaintTime = FALSE;
             ms_cache.Remove(index);
         }