diff options
Diffstat (limited to 'src/sc_interp.c')
-rw-r--r-- | src/sc_interp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c index 7dbe5f4..111c126 100644 --- a/src/sc_interp.c +++ b/src/sc_interp.c @@ -297,6 +297,17 @@ void sc_interp_destroy(SCInterpreter *scin) } +void update_geom(struct frame *fr) +{ + char geom[256]; + snprintf(geom, 255, "%.1fux%.1fu+%.1f+%.1f", + fr->w, fr->h, fr->x, fr->y); + + /* FIXME: What if there are other options? */ + sc_block_set_options(fr->scblocks, strdup(geom)); +} + + static LengthUnits get_units(const char *t) { size_t len = strlen(t); |