aboutsummaryrefslogtreecommitdiff
path: root/nullfe.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-13 21:38:53 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-13 21:48:24 +0000
commitf6965b92e1915c9f49fafbadf603b4fd0da735bd (patch)
treefe570455a0d94181f061e0cae2fd893e6b11f617 /nullfe.c
parentcd6cadbecf245b2916350939343db14e2978f782 (diff)
downloadpuzzles-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 'nullfe.c')
-rw-r--r--nullfe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nullfe.c b/nullfe.c
index 14b6e09..7cba4e0 100644
--- a/nullfe.c
+++ b/nullfe.c
@@ -40,7 +40,7 @@ int print_rgb_grey_colour(drawing *dr, float r, float g, float b, float grey)
int print_rgb_hatched_colour(drawing *dr, float r, float g, float b, int hatch)
{ return 0; }
void print_line_width(drawing *dr, int width) {}
-void print_line_dotted(drawing *dr, int dotted) {}
+void print_line_dotted(drawing *dr, bool dotted) {}
void midend_supersede_game_desc(midend *me, const char *desc,
const char *privdesc) {}
void status_bar(drawing *dr, const char *text) {}