Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agg2D declared in x11/fpgui_toolkit.pas #125

Open
rchastain opened this issue Feb 13, 2023 · 1 comment
Open

Agg2D declared in x11/fpgui_toolkit.pas #125

rchastain opened this issue Feb 13, 2023 · 1 comment

Comments

@rchastain
Copy link

rchastain commented Feb 13, 2023

Hello Graeme and other!

I noticed that when I compile fpgui_toolkit.pas, FPC also compiles all the AggPas library, even when I don't use -dAggCanvas option.

I searched why and found that Agg2D is declared without condition in fpgui_toolkit.pas.

Shouldn't we add something like this?

uses
{ ... }
  U_Command, U_Pdf, U_Report, U_ReportImages, U_Visu, fpg_trayicon{$ifdef AggCanvas}, Agg2D{$endif}, 
@rchastain
Copy link
Author

rchastain commented Feb 13, 2023

It's in x11/fpgui_toolkit.pas. For comparison, in gdi/fpgui_toolkit.pas, Agg2D is not declared at all.

So can we simply remove it from x11/fpgui_toolkit.pas?

@rchastain rchastain changed the title Agg2D declared in fpgui_toolkit.pas Agg2D declared in x11/fpgui_toolkit.pas Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant