diff --git a/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.cpp b/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.cpp index 0cb542810dc..a02374eed4e 100644 --- a/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.cpp +++ b/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.cpp @@ -153,7 +153,6 @@ nsresult nsDeviceContextSpecOS2::SetPrintSettingsFromDevMode(nsIPrintSettings* a PDJP_ITEM pDJP = (PDJP_ITEM) pDJP_Buffer; HDC hdc = nsDeviceContextSpecOS2::PrnDlg.GetDCHandle(printer); - char* driver = nsDeviceContextSpecOS2::PrnDlg.GetDriverType(printer); //Get Number of Copies from Job Properties pDJP->lType = DJP_CURRENT; diff --git a/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.h b/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.h index 786d9215259..e86176683fe 100644 --- a/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.h +++ b/mozilla/gfx/src/os2/nsDeviceContextSpecOS2.h @@ -102,7 +102,7 @@ private: BOOL PrnClosePrinter( PRTQUEUE *pPrintQueue); // Get a DC for the selected printer. Must supply the application name. -HDC PrnOpenDC( PRTQUEUE *pPrintQueue, PSZ pszApplicationName, int copies, int toPrinter, char *file); +HDC PrnOpenDC( PRTQUEUE *pPrintQueue, PSZ pszApplicationName, int copies, int destination, char *file); // Get the hardcopy caps for the selected form BOOL PrnQueryHardcopyCaps( HDC hdc, PHCINFO pHCInfo); diff --git a/mozilla/gfx/src/os2/nsPrintdOS2.h b/mozilla/gfx/src/os2/nsPrintdOS2.h index 48111f4a2c4..f1d90886291 100644 --- a/mozilla/gfx/src/os2/nsPrintdOS2.h +++ b/mozilla/gfx/src/os2/nsPrintdOS2.h @@ -51,7 +51,7 @@ typedef struct OS2prdata { printDest destination; /* print to file, printer or print preview */ int copies; /* number of copies to print 0 < n < 999 */ char printer[ PATH_MAX ]; /* Printer selected - name*/ - char path[ PATH_MAX ]; /* If toPrinter = PR_FALSE, dest file */ + char path[ PATH_MAX ]; /* If destination = printToFile, dest file */ PRBool cancel; /* If PR_TRUE, user cancelled */ } OS2PrData;