mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 04:59:55 +03:00
Fix bug about PrintPreviewDialog
This commit is contained in:
parent
38b9f0f05a
commit
3d9fc4aee3
1 changed files with 1 additions and 1 deletions
|
@ -2577,7 +2577,7 @@ class PreviewPrintController : PrintController
|
||||||
_pageGraphics.drawText(currentPageString, font, Color.black, Rect(0, 0, 1000, 1000));
|
_pageGraphics.drawText(currentPageString, font, Color.black, Rect(0, 0, 1000, 1000));
|
||||||
|
|
||||||
// Draw the main image.
|
// Draw the main image.
|
||||||
const Rect screenRect = Rect(0, 0, _pageGraphics.width, _pageGraphics.height);
|
const Rect screenRect = Rect(0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN)); // NOTE: Gets MemoryGraphics size as the background DC.
|
||||||
const Rect paperRect = _toRect(document.printerSettings.defaultPageSettings);
|
const Rect paperRect = _toRect(document.printerSettings.defaultPageSettings);
|
||||||
const uint row = (e.currentPage - _previewControl.startPage - 1) % _previewControl.rows;
|
const uint row = (e.currentPage - _previewControl.startPage - 1) % _previewControl.rows;
|
||||||
const uint col = (e.currentPage - _previewControl.startPage - 1) / _previewControl.rows;
|
const uint col = (e.currentPage - _previewControl.startPage - 1) / _previewControl.rows;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue