summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/puzzles.h
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-06-25 14:44:33 -0400
committerFranklin Wei <franklin@rockbox.org>2020-06-25 18:45:58 +0000
commit48b0ef1cf22ec37927116ac83ea7c7cfc1f9083e (patch)
tree148ced6ae04e578abc38a38e92879fa13b97a604 /apps/plugins/puzzles/src/puzzles.h
parentdd3a8e08988308cf88c10a44176d83a8a152ec4a (diff)
downloadrockbox-48b0ef1cf22ec37927116ac83ea7c7cfc1f9083e.tar.gz
rockbox-48b0ef1cf22ec37927116ac83ea7c7cfc1f9083e.zip
puzzles: resync with upstream
This brings the upstream version to 9aa7b7c (with some of my changes as well). Change-Id: I5bf8a3e0b8672d82cb1bf34afc07adbe12a3ac53
Diffstat (limited to 'apps/plugins/puzzles/src/puzzles.h')
-rw-r--r--apps/plugins/puzzles/src/puzzles.h7
1 files changed, 6 insertions, 1 deletions
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 @@
11#include <stdbool.h> 11#include <stdbool.h>
12 12
13#define PI 3.141592653589793238462643383279502884197169399 13#define PI 3.141592653589793238462643383279502884197169399
14#define ROOT2 1.414213562373095048801688724209698078569672
14 15
15#define lenof(array) ( sizeof(array) / sizeof(*(array)) ) 16#define lenof(array) ( sizeof(array) / sizeof(*(array)) )
16 17
@@ -530,7 +531,11 @@ document *document_new(int pw, int ph, float userscale);
530void document_free(document *doc); 531void document_free(document *doc);
531void document_add_puzzle(document *doc, const game *game, game_params *par, 532void document_add_puzzle(document *doc, const game *game, game_params *par,
532 game_state *st, game_state *st2); 533 game_state *st, game_state *st2);
533void document_print(document *doc, drawing *dr); 534int document_npages(const document *doc);
535void document_begin(const document *doc, drawing *dr);
536void document_end(const document *doc, drawing *dr);
537void document_print_page(const document *doc, drawing *dr, int page_nr);
538void document_print(const document *doc, drawing *dr);
534 539
535/* 540/*
536 * ps.c 541 * ps.c