summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples/svgtiny_display_x11.c: include the system copy of svgtiny.hMichael Orlitzky2023-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | The header of this file includes instructions for how to build it: Compile using: gcc -g -W -Wall -o svgtiny_display_x11 svgtiny_display_x11.c \ `pkg-config --cflags --libs libsvgtiny cairo` -lX11 That pkg-config command will generate the flags to link against the installed copy of libsvgtiny. The line, #include "svgtiny.h" on the other hand, attempts to use a local header. This commit changes that line to, #include <svgtiny.h> which will use the corresponding system header from whatever include directory pkg-config hands us for libsvgtiny.
* examples/svgtiny_display_x11.c: add missing stdlib.h includeMichael Orlitzky2023-08-091-0/+1
| | | | | | This file uses malloc(), free(), and exit() -- all of which are defined in stdlib.h. GCC seems unhappy about the situation, so we now include it. This allows the file to be compiled once again.
* examples/svgtiny_display_x11.c: update LIBXML -> LIBDOMMichael Orlitzky2023-08-091-2/+2
| | | | | | The svgtiny_LIBXML_ERROR constant was changed to throughout the codebase to svgtiny_LIBDOM_ERROR a long time ago, in 9275ab308, but this example was missed, probably because it isn't built by default.
* enable decode tests for svg filesVincent Sanders2015-09-022-730/+3
| | | | These svg files have caused the library to crash and to render poorly.
* Add an example SVG and a gitignoreDaniel Silverstone2012-11-031-0/+730
|
* Add an example of using libsvgtiny. Displays an SVG using X11 and cairo.James Bursa2010-01-101-0/+444
svn path=/trunk/libsvgtiny/; revision=9800