From fac231875693560adcbd6e3803592e27674dd2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 20 Oct 2019 13:57:56 +0200 Subject: Fix put_text - Prints in "formatting mode" instead of terminal mode - Correct argument formatting --- Kod/bilbana/yc4/display/put_text.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kod') diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m index 95dbb26..5b80192 100644 --- a/Kod/bilbana/yc4/display/put_text.m +++ b/Kod/bilbana/yc4/display/put_text.m @@ -1,9 +1,9 @@ function [pkg] = put_text(x, y, justification, text) - code = double(join('Z', justification)) + code = double(strjoin({'Z', justification}, '')); - arg1 = [x, 0, y, 0] + arg1 = [x, 0, y, 0]; arg2 = text; arg3 = 0; - pkg = get_package(join('Z', justification), [arg1 arg2 arg3]) + pkg = get_package(code, [arg1 double(arg2) arg3]); end -- cgit v1.2.1