r=mkaply, sr=blizzard
OS/2 only - code from jblanco to get print preview working
This commit is contained in:
mkaply%us.ibm.com 2001-11-27 20:24:20 +00:00
parent 2235f50bbb
commit bb810c7bdb
2 changed files with 4 additions and 1 deletions

View File

@ -846,7 +846,7 @@ NS_IMETHODIMP nsDeviceContextOS2 :: GetDeviceContextFor(nsIDeviceContextSpec *aD
HDC dc = PrnOpenDC(pq, "Mozilla", numCopies, toPrinter, file);
if (!dc) {
PMERROR("DevOpenDC");
return NS_ERROR_FAILURE; //PMERROR("DevOpenDC");
} /* endif */
return ((nsDeviceContextOS2 *)aContext)->Init((nsNativeDeviceContext)dc, this);

View File

@ -624,6 +624,9 @@ HDC PrnOpenDC( PRTQUEUE *pInfo, PSZ pszApplicationName, int copies, int toPrinte
LONG dcType;
DEVOPENSTRUC dop;
if (!pInfo || !pszApplicationName)
return hdc;
char pszQueueProcParams[CCHMAXPATH] = "COP=";
char numCopies[12];
itoa (copies, numCopies, 10);