From 48b0ef1cf22ec37927116ac83ea7c7cfc1f9083e Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 25 Jun 2020 14:44:33 -0400 Subject: puzzles: resync with upstream This brings the upstream version to 9aa7b7c (with some of my changes as well). Change-Id: I5bf8a3e0b8672d82cb1bf34afc07adbe12a3ac53 --- apps/plugins/puzzles/src/puzzles.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/plugins/puzzles/src/puzzles.h') diff --git a/apps/plugins/puzzles/src/puzzles.h b/apps/plugins/puzzles/src/puzzles.h index 1732abe3e9..45ae321cc6 100644 --- a/apps/plugins/puzzles/src/puzzles.h +++ b/apps/plugins/puzzles/src/puzzles.h @@ -11,6 +11,7 @@ #include #define PI 3.141592653589793238462643383279502884197169399 +#define ROOT2 1.414213562373095048801688724209698078569672 #define lenof(array) ( sizeof(array) / sizeof(*(array)) ) @@ -530,7 +531,11 @@ document *document_new(int pw, int ph, float userscale); void document_free(document *doc); void document_add_puzzle(document *doc, const game *game, game_params *par, game_state *st, game_state *st2); -void document_print(document *doc, drawing *dr); +int document_npages(const document *doc); +void document_begin(const document *doc, drawing *dr); +void document_end(const document *doc, drawing *dr); +void document_print_page(const document *doc, drawing *dr, int page_nr); +void document_print(const document *doc, drawing *dr); /* * ps.c -- cgit v1.2.3