diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:38:53 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:48:24 +0000 |
| commit | f6965b92e1915c9f49fafbadf603b4fd0da735bd (patch) | |
| tree | fe570455a0d94181f061e0cae2fd893e6b11f617 /devel.but | |
| parent | cd6cadbecf245b2916350939343db14e2978f782 (diff) | |
| download | puzzles-f6965b92e1915c9f49fafbadf603b4fd0da735bd.zip puzzles-f6965b92e1915c9f49fafbadf603b4fd0da735bd.tar.gz puzzles-f6965b92e1915c9f49fafbadf603b4fd0da735bd.tar.bz2 puzzles-f6965b92e1915c9f49fafbadf603b4fd0da735bd.tar.xz | |
Adopt C99 bool in the printing API.
Not many changes here: the 'dotted' flag passed to print_line_dotted
is bool, and so is the printing_in_colour flag passed to
print_get_colour. Also ps_init() takes a bool.
line_dotted is also a method in the drawing API structure, but it's
not actually filled in for any non-print-oriented implementation of
that API. So only front ends that do platform-specific _printing_
should need to make a corresponding change. In-tree, for example,
windows.c needed a fix because it prints via Windows GDI, but gtk.c
didn't have to do anything, because its CLI-based printing facility
just delegates to ps.c.
Diffstat (limited to 'devel.but')
| -rw-r--r-- | devel.but | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -2394,15 +2394,14 @@ capabilities. \S{print-line-dotted} \cw{print_line_dotted()} -\c void print_line_dotted(drawing *dr, int dotted); +\c void print_line_dotted(drawing *dr, bool dotted); This function is called to toggle the drawing of dotted lines during printing. It is not supported during drawing. -The parameter \cq{dotted} is a boolean; \cw{TRUE} means that future -lines drawn by \cw{draw_line()}, \cw{draw_circle} and -\cw{draw_polygon()} will be dotted, and \cw{FALSE} means that they -will be solid. +Setting \cq{dotted} to \cw{true} means that future lines drawn by +\cw{draw_line()}, \cw{draw_circle} and \cw{draw_polygon()} will be +dotted. Setting it to \cw{false} means that they will be solid. Some front ends may impose restrictions on the width of dotted lines. Asking for a dotted line via this front end will override any |