summaryrefslogtreecommitdiff
path: root/rspl/rspl.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-10-02 19:25:17 +0200
commitc2ca7be5a751879159f3cb591a64bb9568b79762 (patch)
tree04e38d4f4a2aad4d789bda0a65b7abb80a3439a2 /rspl/rspl.c
parent45c152c326d87478fbf41714b4b8e2f7b57a282b (diff)
parent3db384424bd7398ffbb7a355cab8f15f3add009f (diff)
Updated version 1.9.1+repack from 'upstream/1.9.1+repack'
with Debian dir 98a996367aa69ae41accf9c6d369f600bc94de80
Diffstat (limited to 'rspl/rspl.c')
-rw-r--r--rspl/rspl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/rspl/rspl.c b/rspl/rspl.c
index 431a7e3..db63a47 100644
--- a/rspl/rspl.c
+++ b/rspl/rspl.c
@@ -60,6 +60,7 @@ static void get_out_range(rspl *s, double *min, double *max);
static void get_out_range_points(rspl *s, int *minp, int *maxp);
static double get_out_scale(rspl *s);
static unsigned int get_next_touch(rspl *s);
+static int *get_res(rspl *s);
static int within_restrictedsize(rspl *s);
static int interp_rspl_sx(rspl *s, co *pp);
static int part_interp_rspl_sx(rspl *s, co *p1, co *p2);
@@ -180,6 +181,7 @@ printf("!!!! rspl.c using interp_rspl_nl !!!!");
s->get_out_range = get_out_range;
s->get_out_range_points = get_out_range_points;
s->get_out_scale = get_out_scale;
+ s->get_res = get_res;
s->get_next_touch = get_next_touch;
s->within_restrictedsize = within_restrictedsize;
@@ -416,6 +418,12 @@ rspl *s
}
/* ============================================ */
+/* Return a pointer to the resolution array */
+static int *get_res(rspl *s) {
+ return s->g.res;
+}
+
+/* ============================================ */
/* Return non-zero if this rspl can be */
/* used with Restricted Size functions. */
static int within_restrictedsize(