From e38820b6adb2be0dafabd517026fd7f8571107b2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 22 Feb 2019 23:24:22 +0100 Subject: Fundamentals of rendering --- libstorycode/storycode.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libstorycode/storycode.y') 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; } ; -- cgit v1.2.3