зеркало из https://github.com/mozilla/pjs.git
Fix landscape printing to work again. Bug 223625, r=tor, sr=bzbarsky, a=asa
This commit is contained in:
Родитель
3d1fa30c6e
Коммит
59c9d716f6
|
@ -1946,12 +1946,15 @@ FILE *f;
|
|||
// axis increasing downwards.
|
||||
fprintf(f, "%g -%g scale\n",
|
||||
1.0 / TWIPS_PER_POINT_FLOAT, 1.0 / TWIPS_PER_POINT_FLOAT);
|
||||
if (mPrintContext->prSetup->landscape){
|
||||
fprintf(f, "%d 0 translate 90 rotate\n", mPrintContext->prSetup->height);
|
||||
}
|
||||
// Move the origin to the top left of the printable area.
|
||||
fprintf(f, "%d -%d translate\n", mPrintContext->prSetup->left,
|
||||
mPrintContext->prSetup->bottom + mPrintContext->prSetup->height);
|
||||
if (mPrintContext->prSetup->landscape){
|
||||
fprintf(f, "-90 rotate %d %d translate\n",
|
||||
mPrintContext->prSetup->left, mPrintContext->prSetup->top);
|
||||
}
|
||||
else {
|
||||
fprintf(f, "%d -%d translate\n", mPrintContext->prSetup->left,
|
||||
mPrintContext->prSetup->bottom + mPrintContext->prSetup->height);
|
||||
}
|
||||
// Try to turn on automatic stroke adjust
|
||||
fputs("true Msetstrokeadjust\n", f);
|
||||
fprintf(f, "%%%%EndPageSetup\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче