summaryrefslogtreecommitdiff
path: root/src/fl_write_png.cxx
AgeCommit message (Collapse)Author
2025-05-11Set default DPI to 300 in fl_write_pngMatthias Melcher
Previously, the DPI value was completely random, resulting in some interesting scaling when reading the png in other apps.
2025-03-27Remove reference to 'configure' from commentAlbrecht Schlosser
Explain details of the mentioned 'hack' referring to and citing parts of the original commit log.
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2021-12-01Hack to restore "configure --enable-x11" on macOS ≥ 11ManoloFLTK
Since macOS 11, configure --enable-x11 (and the equivalent with CMake) fails when compiling fl_write_png.cxx in parsing of time.h. The error happens only if png.h is included without time.h having been included before. The fix is to #include time.h before png.h A better fix than his hack is desirable.
2021-11-11Support all image depths (1-4) in fl_write_png()Albrecht Schlosser
2021-11-09Refactor fluid: make fl_write_png() publicAlbrecht Schlosser
The new function fl_write_png() was moved to its own file and is now publicly available ("exported") so other programs can use it. This function was used in fluid to write a window screenshot (.png) together with a template (.fl) to preferences storage.