mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 04:59:55 +03:00
typo
This commit is contained in:
parent
f3db485ee6
commit
218ae04c59
1 changed files with 3 additions and 3 deletions
|
@ -2219,12 +2219,12 @@ class PrintPreviewControl : Control
|
|||
if (this.autoZoom)
|
||||
{
|
||||
const Rect offscreenRect = Rect(0, 0, _offscreen.width, _offscreen.height);
|
||||
uint onScreenHeight = this.height;
|
||||
uint onscreenHeight = this.height;
|
||||
uint onscreenWidth = offscreenRect.width * this.height / offscreenRect.height;
|
||||
if (onscreenWidth >= this.width)
|
||||
{
|
||||
onscreenWidth = this.width;
|
||||
onScreenHeight = offscreenRect.height * this.width / offscreenRect.width;
|
||||
onscreenHeight = offscreenRect.height * this.width / offscreenRect.width;
|
||||
}
|
||||
|
||||
SetStretchBltMode(_offscreen.handle, STRETCH_DELETESCANS); // SRC
|
||||
|
@ -2233,7 +2233,7 @@ class PrintPreviewControl : Control
|
|||
0,
|
||||
0,
|
||||
onscreenWidth,
|
||||
onScreenHeight,
|
||||
onscreenHeight,
|
||||
_offscreen.handle, // SRC
|
||||
0,
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue