summaryrefslogtreecommitdiffstats
path: root/Kod
diff options
context:
space:
mode:
authorGustav Sörnäs <gusso230@student.liu.se>2019-11-16 14:04:21 +0100
committerGustav Sörnäs <gusso230@student.liu.se>2019-11-17 21:37:10 +0100
commit6f56856ecdcea0f873a154369b4f544cef12f470 (patch)
treefaf87ccc76c88991fe53c8027fb9491a7ca30e42 /Kod
parent28f73daf8ded62734f9cdbb9db3fcc20d4183cfc (diff)
downloadtfyy51-6f56856ecdcea0f873a154369b4f544cef12f470.tar.gz
Fix put_text
Diffstat (limited to 'Kod')
-rw-r--r--Kod/bilbana/yc4/display/text.m6
1 files changed, 3 insertions, 3 deletions
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]);