summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-02-21 12:23:30 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-02-21 12:23:30 +0200
commitf7ff39af01700ebd86368c097550ddc5321b4355 (patch)
tree2c6b561776080907286a98a03a82aeaaffb4b00b /src/corelib/x11
parent4f397af51f4169214f05a1f1dc91d680dd7260cb (diff)
downloadfpGUI-f7ff39af01700ebd86368c097550ddc5321b4355.tar.xz
Adds PNG loading support.
The unit uses the fcl-image backend to load the image. This is slightly slower than the native implementations for BMP and JPG. But at least now we have PNG support too.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/fpgui_toolkit.lpk6
-rw-r--r--src/corelib/x11/fpgui_toolkit.pas2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/x11/fpgui_toolkit.lpk b/src/corelib/x11/fpgui_toolkit.lpk
index 7a18d789..46614518 100644
--- a/src/corelib/x11/fpgui_toolkit.lpk
+++ b/src/corelib/x11/fpgui_toolkit.lpk
@@ -31,7 +31,7 @@
<License Value="LGPL 2 with static linking exception.
"/>
<Version Minor="8"/>
- <Files Count="91">
+ <Files Count="92">
<Item1>
<Filename Value="../stdimages.inc"/>
<Type Value="Include"/>
@@ -396,6 +396,10 @@
<Filename Value="../../gui/fpg_readonly.pas"/>
<UnitName Value="fpg_readonly"/>
</Item91>
+ <Item92>
+ <Filename Value="../fpg_imgfmt_png.pas"/>
+ <UnitName Value="fpg_imgfmt_png"/>
+ </Item92>
</Files>
<LazDoc Paths="../../../docs/xml/corelib/;../../../docs/xml/corelib/x11/;../../../docs/xml/corelib/gdi/;../../../docs/xml/gui/"/>
<RequiredPkgs Count="1">
diff --git a/src/corelib/x11/fpgui_toolkit.pas b/src/corelib/x11/fpgui_toolkit.pas
index 8c66a9a3..b2a4b774 100644
--- a/src/corelib/x11/fpgui_toolkit.pas
+++ b/src/corelib/x11/fpgui_toolkit.pas
@@ -19,7 +19,7 @@ uses
fpg_hint, fpg_spinedit, fpg_extgraphics, fpg_ColorMapping, fpg_ColorWheel,
fpg_interface, fpg_editbtn, fpg_imgfmt_jpg, fpg_imgutils, fpg_stylemanager,
fpg_style_win2k, fpg_style_motif, fpg_style_clearlooks, fpg_style_bluecurve,
- fpg_style_bitmap, fpg_readonly;
+ fpg_style_bitmap, fpg_readonly, fpg_imgfmt_png;
implementation