From 6f56856ecdcea0f873a154369b4f544cef12f470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 16 Nov 2019 14:04:21 +0100 Subject: Fix put_text --- Kod/bilbana/yc4/display/text.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kod') diff --git a/Kod/bilbana/yc4/display/text.m b/Kod/bilbana/yc4/display/text.m index b6589d2..8157a65 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 = strrep(text, '\n', '|'); +function [pkg] = put_text(x, y, justification, text) +arg1 = [get_bytes(x), get_bytes(y)]; +arg2 = text; arg3 = 0; pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]); -- cgit v1.2.1