diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 18:32:50 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 18:36:20 +0200 |
commit | fcdd01f2c9e2664c3d82cd764064a1e6dea70674 (patch) | |
tree | f83a421305918174b7a484297a406be67544a472 /libstorycode/stylesheet.c | |
parent | 8ccc8b247769d7c1dfd21d674b7e87a9370363e2 (diff) |
Use GEOMETRY for slide size
Diffstat (limited to 'libstorycode/stylesheet.c')
-rw-r--r-- | libstorycode/stylesheet.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c index 4248f52..896b2d3 100644 --- a/libstorycode/stylesheet.c +++ b/libstorycode/stylesheet.c @@ -237,18 +237,6 @@ int stylesheet_get_slide_default_size(Stylesheet *s, double *w, double *h) } -int stylesheet_set_slide_default_size(Stylesheet *s, double w, double h) -{ - struct style *sty = lookup_style(&s->top, "SLIDE"); - if ( sty == NULL ) return 1; - assert(sty->geom.w.unit == LENGTH_UNIT); - assert(sty->geom.h.unit == LENGTH_UNIT); - sty->geom.w.len = w; - sty->geom.h.len = h; - return 0; -} - - int stylesheet_set_geometry(Stylesheet *s, const char *stn, struct frame_geom geom) { struct style *sty = lookup_style(&s->top, stn); @@ -518,13 +506,6 @@ static void add_style(char **text, size_t *len, size_t *lenmax, const char *pref add_text(text, len, lenmax, prefix, "}\n"); } free(prefix2); - - if ( strcmp(sty->name, "SLIDE") == 0 ) { - char tmp[256]; - snprintf(tmp, 255, "SIZE %.4gu x %4gu\n", - sty->geom.w.len, sty->geom.h.len); - add_text(text, len, lenmax, prefix, tmp); - } } |