mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 04:59:55 +03:00
Clean up
This commit is contained in:
parent
218ae04c59
commit
a52064a7da
1 changed files with 5 additions and 6 deletions
|
@ -2514,7 +2514,6 @@ class PrintPreviewDialog : Form
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
class PreviewPrintController : PrintController
|
||||
{
|
||||
|
@ -2615,16 +2614,16 @@ class PreviewPrintController : PrintController
|
|||
{
|
||||
const Point pos = layoutHelper.position();
|
||||
const Rect paperRect = _paperRectFrom(page.settings);
|
||||
const uint offScreenWidth = cast(uint)(paperRect.width * ratio);
|
||||
const uint offScreenHeight = cast(uint)(paperRect.height * ratio);
|
||||
const uint pageRenderWidth = cast(uint)(paperRect.width * ratio);
|
||||
const uint pageRenderHeight = cast(uint)(paperRect.height * ratio);
|
||||
Graphics pageGraphics = page.graphics;
|
||||
SetStretchBltMode(pageGraphics.handle, STRETCH_DELETESCANS); // SRC
|
||||
StretchBlt(
|
||||
e.hDC, // DST
|
||||
pos.x,
|
||||
pos.y,
|
||||
offScreenWidth,
|
||||
offScreenHeight,
|
||||
pageRenderWidth,
|
||||
pageRenderHeight,
|
||||
pageGraphics.handle, // SRC
|
||||
0,
|
||||
0,
|
||||
|
@ -2634,7 +2633,7 @@ class PreviewPrintController : PrintController
|
|||
);
|
||||
pageGraphics.dispose(); // Created in onStartPage().
|
||||
|
||||
layoutHelper.appendPageSize(offScreenWidth, offScreenHeight);
|
||||
layoutHelper.appendPageSize(pageRenderWidth, pageRenderHeight);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue