aboutsummaryrefslogtreecommitdiff
path: root/libstorycode/storycode.y
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2019-02-22 23:24:22 +0100
committerThomas White <taw@bitwiz.me.uk>2019-02-22 23:24:22 +0100
commite38820b6adb2be0dafabd517026fd7f8571107b2 (patch)
treefea9d8327e7994bce988648e76a2e59942ec40c7 /libstorycode/storycode.y
parentaee387068f5b9013687250e8d655b56a0c5776f2 (diff)
Fundamentals of rendering
Diffstat (limited to 'libstorycode/storycode.y')
-rw-r--r--libstorycode/storycode.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstorycode/storycode.y b/libstorycode/storycode.y
index b04acf4..1062794 100644
--- a/libstorycode/storycode.y
+++ b/libstorycode/storycode.y
@@ -230,7 +230,7 @@ frameopt:
;
geometry:
- length TIMES length PLUS length PLUS length { $$.x = $1; $$.y = $3; $$.w = $5; $$.h = $7;
+ length TIMES length PLUS length PLUS length { $$.w = $1; $$.h = $3; $$.x = $5; $$.y = $7;
ctx->geom = $$; ctx->geom_set = 1; }
;
@@ -246,8 +246,8 @@ slidetitle:
length:
VALUE UNIT { $$.len = $VALUE;
- if ( $UNIT == 'f' ) $$.unit = LENGTH_UNIT;
- if ( $UNIT == 'u' ) $$.unit = LENGTH_FRAC; }
+ if ( $UNIT == 'u' ) $$.unit = LENGTH_UNIT;
+ if ( $UNIT == 'f' ) $$.unit = LENGTH_FRAC; }
;