aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/stylesheet.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-04-06 22:46:30 +0200
committerThomas White <taw@bitwiz.me.uk>2019-04-06 22:46:30 +0200
commitb82f2beadfbd4deb1bd89566a8115c26e82cd0f9 (patch)
tree8b7785a642dcc051bcefde2af2175a7f0660281d /libstorycode/stylesheet.c
parent42b06297f2e311057c1dea19d5c14cc44e126da6 (diff)
Save slides
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r--libstorycode/stylesheet.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c
index 3fdb7af..e3aecee 100644
--- a/libstorycode/stylesheet.c
+++ b/libstorycode/stylesheet.c
@@ -31,6 +31,7 @@
#include <stdio.h>
#include "stylesheet.h"
+#include "storycode.h"
enum style_mask
{
@@ -423,32 +424,6 @@ static void add_text(char **text, size_t *len, size_t *lenmax, const char *prefi
}
-static char unitc(enum length_unit unit)
-{
- if ( unit == LENGTH_FRAC ) return 'f';
- if ( unit == LENGTH_UNIT ) return 'u';
- return '?';
-}
-
-
-static const char *bgcolc(enum gradient bggrad)
-{
- if ( bggrad == GRAD_NONE ) return "";
- if ( bggrad == GRAD_HORIZ ) return "HORIZONTAL ";
- if ( bggrad == GRAD_VERT ) return "VERTICAL ";
- return "?";
-}
-
-
-static const char *alignc(enum alignment ali)
-{
- if ( ali == ALIGN_LEFT ) return "left";
- if ( ali == ALIGN_CENTER ) return "center";
- if ( ali == ALIGN_RIGHT ) return "right";
- return "?";
-}
-
-
static void add_style(char **text, size_t *len, size_t *lenmax, const char *prefix,
struct style *sty)
{