]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcprint.cpp
move code ignoring VK_SPACE and VK_RETURN WM_CHAR messages to MSWDefWindowProc()...
[wxWidgets.git] / src / os2 / dcprint.cpp
index 6aa9942d05d70398b509289d301b6f00e7a3de4c..fc49df9d0490d6d9178bb05deb6ff565ecd9c029 100644 (file)
@@ -19,6 +19,7 @@
 
 #ifndef WX_PRECOMP
 #include "wx/app.h"
 
 #ifndef WX_PRECOMP
 #include "wx/app.h"
+#include "wx/math.h"
 #endif
 
 #include "wx/string.h"
 #endif
 
 #include "wx/string.h"
@@ -26,7 +27,6 @@
 #include "wx/window.h"
 #include "wx/os2/private.h"
 #include "wx/dcprint.h"
 #include "wx/window.h"
 #include "wx/os2/private.h"
 #include "wx/dcprint.h"
-#include "math.h"
 
 #if wxUSE_PRINTING_ARCHITECTURE
 
 
 #if wxUSE_PRINTING_ARCHITECTURE
 
@@ -42,7 +42,6 @@ wxPrinterDC::wxPrinterDC(
 , int                               nOrientation
 )
 {
 , int                               nOrientation
 )
 {
-    LONG            lType = 0;
     DEVOPENSTRUC    vDevOpen = { (char*)rsDeviceName.c_str()
                                 ,(char*)rsDriverName.c_str()
                                 ,NULL
     DEVOPENSTRUC    vDevOpen = { (char*)rsDeviceName.c_str()
                                 ,(char*)rsDriverName.c_str()
                                 ,NULL
@@ -233,7 +232,7 @@ void wxPrinterDC::EndPage()
 //    if (m_hDC)
 //        ::EndPage((HDC) m_hDC);
 } // end of wxPrinterDC::EndPage
 //    if (m_hDC)
 //        ::EndPage((HDC) m_hDC);
 } // end of wxPrinterDC::EndPage
-
+#if 0
 // Returns default device and port names
 static bool wxGetDefaultDeviceName(
   wxString&                         rsDeviceName
 // Returns default device and port names
 static bool wxGetDefaultDeviceName(
   wxString&                         rsDeviceName
@@ -295,6 +294,7 @@ static bool wxGetDefaultDeviceName(
 */
     return(TRUE);
 } // end of wxGetDefaultDeviceName
 */
     return(TRUE);
 } // end of wxGetDefaultDeviceName
+#endif
 
 // Gets an HDC for the specified printer configuration
 WXHDC WXDLLEXPORT wxGetPrinterDC(
 
 // Gets an HDC for the specified printer configuration
 WXHDC WXDLLEXPORT wxGetPrinterDC(
@@ -356,8 +356,8 @@ void wxPrinterDC::DoDrawBitmap(
 {
     wxCHECK_RET( rBmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") );
 
 {
     wxCHECK_RET( rBmp.Ok(), _T("invalid bitmap in wxPrinterDC::DrawBitmap") );
 
-    int                             nWidth  = rBmp.GetWidth();
-    int                             nHeight = rBmp.GetHeight();
+//    int                             nWidth  = rBmp.GetWidth();
+//    int                             nHeight = rBmp.GetHeight();
 
     // TODO:
 
 
     // TODO:
 
@@ -373,6 +373,8 @@ bool wxPrinterDC::DoBlit(
 , wxCoord                           vYsrc
 , int                               nRop
 , bool                              bUseMask
 , wxCoord                           vYsrc
 , int                               nRop
 , bool                              bUseMask
+, wxCoord                           xsrcMask
+, wxCoord                           ysrcMask
 )
 {
     bool                            bSuccess = TRUE;
 )
 {
     bool                            bSuccess = TRUE;