summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/display/put_text.m
diff options
context:
space:
mode:
Diffstat (limited to 'Kod/bilbana/yc4/display/put_text.m')
-rw-r--r--Kod/bilbana/yc4/display/put_text.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/Kod/bilbana/yc4/display/put_text.m b/Kod/bilbana/yc4/display/put_text.m
index 22871e3..8455c83 100644
--- a/Kod/bilbana/yc4/display/put_text.m
+++ b/Kod/bilbana/yc4/display/put_text.m
@@ -1,9 +1,7 @@
function [pkg] = put_text(x, y, justification, text)
- code = strjoin({'Z', justification}, '');
+arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256];
+arg2 = text;
+arg3 = 0;
- arg1 = [mod(x, 256), x ./ 256, mod(y, 256), y ./ 256];
- arg2 = text;
- arg3 = 0;
-
- pkg = get_package(code, [arg1 double(arg2) arg3]);
+pkg = get_package(strjoin({'Z', justification}, ''), [arg1 double(arg2) arg3]);
end