зеркало из https://github.com/mozilla/pjs.git
turns on scaling and fixes it
Bug 120075 r=dcone sr=attinasi
This commit is contained in:
Родитель
3e3ede44ed
Коммит
30512f5d7f
|
@ -5291,7 +5291,9 @@ DocumentViewerImpl::Print(PRBool aSilent,
|
|||
double scaling;
|
||||
mPrt->mPrintSettings->GetScaling(&scaling);
|
||||
if (scaling <= 1.0) {
|
||||
dx->SetCanonicalPixelScale(float(scaling));
|
||||
float oldScale = 1.0f;
|
||||
mPrt->mPrintDC->GetCanonicalPixelScale(oldScale);
|
||||
mPrt->mPrintDC->SetCanonicalPixelScale(float(scaling)*oldScale);
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
|
|
@ -5291,7 +5291,9 @@ DocumentViewerImpl::Print(PRBool aSilent,
|
|||
double scaling;
|
||||
mPrt->mPrintSettings->GetScaling(&scaling);
|
||||
if (scaling <= 1.0) {
|
||||
dx->SetCanonicalPixelScale(float(scaling));
|
||||
float oldScale = 1.0f;
|
||||
mPrt->mPrintDC->GetCanonicalPixelScale(oldScale);
|
||||
mPrt->mPrintDC->SetCanonicalPixelScale(float(scaling)*oldScale);
|
||||
}
|
||||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
|
|
@ -203,11 +203,11 @@ Contributor(s):
|
|||
<rows>
|
||||
<row>
|
||||
<hbox align="center">
|
||||
<label id="scalingLabel" control="scalingInput" value="&scalingInput.label;" disabled="true"/>
|
||||
<label id="scalingLabel" control="scalingInput" value="&scalingInput.label;" />
|
||||
</hbox>
|
||||
<textbox id="scalingInput" style="width:4em;" onkeyup="checkDouble(this)" disabled="true"/>
|
||||
<textbox id="scalingInput" style="width:4em;" onkeyup="checkDouble(this)" />
|
||||
<hbox align="center">
|
||||
<label id="scalingLabelPost" control="scalingInputPost" value="&scalingInputPost.label;" disabled="true"/>
|
||||
<label id="scalingLabelPost" control="scalingInputPost" value="&scalingInputPost.label;" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
|
|
@ -203,11 +203,11 @@ Contributor(s):
|
|||
<rows>
|
||||
<row>
|
||||
<hbox align="center">
|
||||
<label id="scalingLabel" control="scalingInput" value="&scalingInput.label;" disabled="true"/>
|
||||
<label id="scalingLabel" control="scalingInput" value="&scalingInput.label;" />
|
||||
</hbox>
|
||||
<textbox id="scalingInput" style="width:4em;" onkeyup="checkDouble(this)" disabled="true"/>
|
||||
<textbox id="scalingInput" style="width:4em;" onkeyup="checkDouble(this)" />
|
||||
<hbox align="center">
|
||||
<label id="scalingLabelPost" control="scalingInputPost" value="&scalingInputPost.label;" disabled="true"/>
|
||||
<label id="scalingLabelPost" control="scalingInputPost" value="&scalingInputPost.label;" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
|
Загрузка…
Ссылка в новой задаче