fpvviewer: Minor improvements

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4491 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
sekelsenmat
2016-02-06 10:16:09 +00:00
parent 0cf154c322
commit 92b7929557

View File

@ -109,7 +109,7 @@ begin
lPage := FVec.GetPage(0);
if lPage = nil then
Exception.Create('The document has no pages');
lPageHeight := Drawer.Height;
lPageHeight := Drawer.Drawing.Height;
lPage.GetNaturalRenderPos(lPageHeight, YAxisMultiplier);
if checkForceWhiteBackground.Checked then lPage.BackgroundColor := colWhite;
if not checkForceWhiteBackground.Checked then
@ -117,14 +117,14 @@ begin
lPage.Render(
Drawer.Drawing.Canvas,
Drawer.PosX,
Drawer.Drawing.Height + Drawer.PosY,
lPageHeight + Drawer.PosY,
spinScale.Value,
YAxisMultiplier * spinScale.Value);
if checkShowPage.Checked then
lPage.RenderPageBorder(
Drawer.Drawing.Canvas,
Drawer.PosX,
Drawer.Drawing.Height + Drawer.PosY,
lPageHeight + Drawer.PosY,
spinScale.Value,
YAxisMultiplier * spinScale.Value);
Drawer.Invalidate;