You've already forked lazarus-ccr
fpvviewer: New idea for rendering page sequences
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3948 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -100,6 +100,7 @@ var
|
|||||||
CanvasSize: TPoint;
|
CanvasSize: TPoint;
|
||||||
lCurPage: TvVectorialPage;
|
lCurPage: TvVectorialPage;
|
||||||
lPage: TvPage;
|
lPage: TvPage;
|
||||||
|
YAxisMultiplier: Double = -1;
|
||||||
begin
|
begin
|
||||||
// First check the in input
|
// First check the in input
|
||||||
if editFileName.FileName = '' then Exit; // silent exit in this simple case
|
if editFileName.FileName = '' then Exit; // silent exit in this simple case
|
||||||
@ -143,6 +144,7 @@ begin
|
|||||||
lPage := Vec.GetPage(0);
|
lPage := Vec.GetPage(0);
|
||||||
if lPage = nil then
|
if lPage = nil then
|
||||||
Exception.Create('The document has no pages');
|
Exception.Create('The document has no pages');
|
||||||
|
if lPage is TvTextPageSequence then YAxisMultiplier := 1.0;
|
||||||
if checkForceWhiteBackground.Checked then lPage.BackgroundColor := colWhite;
|
if checkForceWhiteBackground.Checked then lPage.BackgroundColor := colWhite;
|
||||||
if not checkForceWhiteBackground.Checked then
|
if not checkForceWhiteBackground.Checked then
|
||||||
lPage.DrawBackground(Drawer.Drawing.Canvas);
|
lPage.DrawBackground(Drawer.Drawing.Canvas);
|
||||||
@ -151,14 +153,14 @@ begin
|
|||||||
FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosX,
|
FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosX,
|
||||||
Drawer.Drawing.Height - FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosY,
|
Drawer.Drawing.Height - FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosY,
|
||||||
spinScale.Value,
|
spinScale.Value,
|
||||||
-1 * spinScale.Value);
|
YAxisMultiplier * spinScale.Value);
|
||||||
if checkShowPage.Checked then
|
if checkShowPage.Checked then
|
||||||
lPage.RenderPageBorder(
|
lPage.RenderPageBorder(
|
||||||
Drawer.Drawing.Canvas,
|
Drawer.Drawing.Canvas,
|
||||||
FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosX,
|
FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosX,
|
||||||
Drawer.Drawing.Height - FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosY,
|
Drawer.Drawing.Height - FPVVIEWER_SPACE_FOR_NEGATIVE_COORDS + Drawer.PosY,
|
||||||
spinScale.Value,
|
spinScale.Value,
|
||||||
-1 * spinScale.Value);
|
YAxisMultiplier * spinScale.Value);
|
||||||
Drawer.Invalidate;
|
Drawer.Invalidate;
|
||||||
|
|
||||||
// Show debug tokens
|
// Show debug tokens
|
||||||
|
Reference in New Issue
Block a user