fpGUI
fpGUI copied to clipboard
Zaaphod custom
The following issues with AggPas are addressed here:
Freetype.dll needs to be appropriately 32bit or 64bit Rename Freetype.dll to Freetype32.dll and include FreeType64.dll Please note that Freetype64.dll is just something I found, so I'm not sure if it is based on the current version or not.
Add a compiler directive to use RBG565 format for use with PTCgraph to make changes in agg_2D.pas
Patch to correct color reversal of red and blue channels when using RGB565 format * This has now been fixed so agg_color.pas is no longer included in this pull request
There may be a better way to implement these issues, but I figured I would submit a pull request to show how I was able to work around the issues until a permanent solution is available
I'm wondering if the change in agg_color.pas should always be made without the compiler directive so that the code on line 134 would read
constructor rgba8.Construct; begin b:=int8u(b_ ); g:=int8u(g_ ); r:=int8u(r_ ); a:=int8u(a_ ); end;
The sample program that writes to a file as well as my programs that use PTCGraph require it to be like this, and it doesn't make sense to set blue = red and red = blue... wherever that needed to happen should be changed, but here blue should always be blue and red should always be red.
Thanks for fixing agg_color.pas