From 28f73daf8ded62734f9cdbb9db3fcc20d4183cfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 15 Nov 2019 15:22:20 +0100 Subject: Add test for drawing display graphs --- Kod/bilbana/yc4/display/text.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kod/bilbana') diff --git a/Kod/bilbana/yc4/display/text.m b/Kod/bilbana/yc4/display/text.m index e31ecc3..b6589d2 100644 --- a/Kod/bilbana/yc4/display/text.m +++ b/Kod/bilbana/yc4/display/text.m @@ -1,6 +1,6 @@ function [pkg] = text(x, y, justification, text) arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256]; -arg2 = text; +arg2 = strrep(text, '\n', '|'); arg3 = 0; pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]); -- cgit v1.2.1